Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default VB Code Question Range(

is there a way to addreess a cell using the column number instead of the
column letter?

Instead of Range("A2").value .... Range(? & 2).value

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default VB Code Question Range(

Hi Sandy

You can use Cells
Cells(row,column)

Sheets("Sheet1").Cells(1, 2).Value



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Sandy" wrote in message ...
is there a way to addreess a cell using the column number instead of the
column letter?

Instead of Range("A2").value .... Range(? & 2).value

Thank you



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default VB Code Question Range(

cells(?,2).value
Sandy wrote:
is there a way to addreess a cell using the column number instead of the
column letter?

Instead of Range("A2").value .... Range(? & 2).value

Thank you


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default VB Code Question Range(

To be consistent with your example, I think steve meant

cells(2,?) where, for column A, ? would be 1.

--
Regards,
Tom Ogilvy

"stevebriz" wrote:

cells(?,2).value
Sandy wrote:
is there a way to addreess a cell using the column number instead of the
column letter?

Instead of Range("A2").value .... Range(? & 2).value

Thank you



Reply
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
code question Shu of AZ Excel Discussion (Misc queries) 2 July 12th 08 01:10 AM
vb code question Stan Excel Discussion (Misc queries) 8 April 25th 08 10:43 PM
Range Question / error 1004: method Range of object Worksheet has failed Paul Excel Programming 3 April 7th 05 02:56 PM
VB Code Naming a Range (range changes each time) krazylain Excel Programming 4 May 15th 04 12:41 PM
Range.Formula and Range question using Excel Automation [email protected] Excel Programming 0 September 19th 03 04:53 AM


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

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

About Us

"It's about Microsoft Excel"