LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA code refering to columns by name

after testing this, it seems that if you name an entire column, ie G:G
you can select the column by "Name," and you can even select it b
"Name:Name" but "Name" & "21" to get cell G21 won't work, because yo
are essentially asking for the entire column G and tacking a 21 on th
end.

However you could name cell "G1" and then offset by the number of row
you'd like...

Range("TripDate").Offset(iNextRow-1, 0) = TBDate.Value

however, there are wiser heads than mine out here, perhaps someone els
can make it work with the named column... i'd be interested to see tha
work..

--
Message posted from http://www.ExcelForum.com

 
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
refering to other workbooks cjbarron5 Excel Discussion (Misc queries) 2 June 2nd 08 08:17 PM
Refering to other tabs easily Sean Excel Discussion (Misc queries) 11 November 23rd 07 03:46 AM
Refering a cell Arun Kumar Saha Excel Worksheet Functions 2 June 18th 07 12:48 PM
Refering to Cells madh83 Excel Worksheet Functions 3 July 19th 06 11:39 PM
Refering to Cell's Name in Macro LSB Excel Programming 5 August 8th 03 03:51 AM


All times are GMT +1. The time now is 12:43 PM.

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"