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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Navigating a WorkSheet

Status
Not open for further replies.

MikeC14081972

Programmer
Joined
May 31, 2006
Messages
137
Location
GB
I'm using the ASCII value of characters to navigate an excel spreadsheet i.e.

Code:
' i is a long that relates to row number
.ActiveSheet.Range(chr(65) & i).select

My problem is I need to merge a number of cells on a given row dependant on data in another sheet.

I'm fine for columns A to Z but the problem I'm having is how to reference a value for Column AA as ASCII only has values for individual characters.

Any Ideas?????
 

build a string before hand

Code:
.....
Dim str_range as string 
....

str_range = chr(65) & chr(65) & i

.ActiveSheet.Range(str_range).select

before Skip asks, why the select ?

Chance,

F, G + yeah reached 50
 





Geez, Chance!

Well, I guess the sun does rise for y'all, a few hours before it does here, in Texas. ;-)

Skip,

[glasses]Just traded in my old subtlety...
for a brand NUANCE![tongue]
 
Thanks Guys.

Had just done something like that ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top