Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Please Help! Column Header Lookup

I have to modify an excel template that is currently using the columns
and rows of the spreadsheet to make calculations. The problems is
people decide to change the columns every so often. I am new to vba and
I am trying to figure out the best method for me to use the header name
for the column (for example "Time") in my calculations. So if "Time"
was originally at (1,19) then it changed to (1,22) excel would still
look for the column header and base it calculations off the data in the
column "Time". I would paste the code that I have to modify but its
about 250 pages.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Please Help! Column Header Lookup


I would suggest perhaps creating that column into a named range. then i
your code you can refer to it as range("time").value which is the valu
of the the range of column. if the column increase or decrease it wil
always refer to the range that you require

--
funkymonkU
-----------------------------------------------------------------------
funkymonkUK's Profile: http://www.excelforum.com/member.php...fo&userid=1813
View this thread: http://www.excelforum.com/showthread.php?threadid=55598

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Please Help! Column Header Lookup


funkymonkUK wrote:
I would suggest perhaps creating that column into a named range. then in
your code you can refer to it as range("time").value which is the value
of the the range of column. if the column increase or decrease it will
always refer to the range that you require.


--
funkymonkUK
------------------------------------------------------------------------
funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135
View this thread: http://www.excelforum.com/showthread...hreadid=555986



Thanks for the help...and such a quick response!

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
lookup first & last values within row & return column header value Matt Excel Discussion (Misc queries) 12 May 1st 09 07:08 AM
Return column header as solution to lookup Tessa Excel Worksheet Functions 3 April 15th 09 08:59 PM
Lookup Value in Range/Array and Return Column Header Value [email protected] Excel Discussion (Misc queries) 3 June 16th 06 07:05 PM
Lookup Value in Range/Array and Return Column Header Value [email protected] Excel Worksheet Functions 3 June 16th 06 07:05 PM
Lookup Value in Range/Array and Return Column Header Value [email protected] Excel Programming 3 June 16th 06 07:05 PM


All times are GMT +1. The time now is 09:46 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"