LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Select a column using it's number

strValue = Cells(4,7).value

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Keith" wrote in message
...
If I have a cells row and column numbers. I.e. G4 had a row of 4 and a
column of 7 can I get the value of that cell using these values or do I

have
to convert the 7 into the letter G and joun it the the number 4 in a

string
first?

for Example:

str2 = "G" + trim(str$(Target.Row)

strValue = Range(str2).value



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select number from leftmost column that has one widman Excel Discussion (Misc queries) 4 April 29th 10 02:05 AM
Select range using row and column number addresses NDBC Excel Discussion (Misc queries) 4 July 22nd 09 06:51 AM
How to define and select the last (bottom) number in a column? BrendaN_at_Welke_Customs Excel Worksheet Functions 24 November 5th 07 05:06 AM
Select noncontiguous multiple columns by column number? c mateland Excel Programming 8 October 22nd 06 12:23 PM
How do I select the first occurance of a number in a column Corner920 Excel Programming 2 July 18th 05 07:26 AM


All times are GMT +1. The time now is 12:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"