#1   Report Post  
wnl2007
 
Posts: n/a
Default question macros


I need to know whether macros can be used to "grab" data in a cell
reference, no matter where that cell may be. For instance, If I need
to insert a new column in sheet 4, and the column that gets shifted is
referenced in sheet 5, I want to make sure the reference can process
that change, so that I don't have to continuously change my formulas.


--
wnl2007
------------------------------------------------------------------------
wnl2007's Profile: http://www.excelforum.com/member.php...o&userid=24200
View this thread: http://www.excelforum.com/showthread...hreadid=378136

  #2   Report Post  
JMB
 
Posts: n/a
Default

if the only thing referencing your data are excel worksheet functions on
sheet 5, excel will update your links automatically.

if you have macros that are referencing your data, they will not update when
your data is moved. one possibility is to use a named range. you could name
the column "MyColumn", then in your macro it would be

Range("MyColumn")

to refer to this range and

Range("MyColumn") (1,1)
or
Range("MyColumn).Cells(1,1)

to refer to the cell in the first row and first column of "MyColumn".



"wnl2007" wrote:


I need to know whether macros can be used to "grab" data in a cell
reference, no matter where that cell may be. For instance, If I need
to insert a new column in sheet 4, and the column that gets shifted is
referenced in sheet 5, I want to make sure the reference can process
that change, so that I don't have to continuously change my formulas.


--
wnl2007
------------------------------------------------------------------------
wnl2007's Profile: http://www.excelforum.com/member.php...o&userid=24200
View this thread: http://www.excelforum.com/showthread...hreadid=378136


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
Protect macros? JulieD Excel Discussion (Misc queries) 6 August 25th 05 08:38 PM
Enable macros automatically for a workbook Diane Alsing Excel Discussion (Misc queries) 4 February 16th 05 05:48 PM
Enabling macros Peter M Excel Discussion (Misc queries) 3 February 7th 05 10:57 PM
Transferring toolbars and macros to other computers Darrell Excel Discussion (Misc queries) 1 January 19th 05 12:21 AM
The available macros list in XL; how to suppress filename from showing KR Excel Discussion (Misc queries) 1 January 10th 05 07:20 PM


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