Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

R1C1 with Variables

Status
Not open for further replies.

kaplin

Programmer
Joined
Mar 14, 2003
Messages
11
Location
CA
When I do this:

text = "=subtotal(9," & Chr(64 + col) & "2:" & Chr(64 + col) & lastrow & ")"

where col and lastrow are integers, I get an error because it inserts single parenthesis into the formala in the cell.

Ex: =subtotal(9,'A20':'B60')

Any idea how I get rid of the parenthesis - am I concatinating wrong?
 
Double post. See response in thread68-526844.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top