Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Macro problem where workbook name is saved in another name and macro reference changes

Ok, since I didn't do a good enough job in explaining my problem, let me go
one more time.
Is there a way, when using named cells or ranges in an Excel worksheet to
ensure the reference stays with that worksheet and doesn't change?
My example would be: First named range shows as Utility:!$R$232
subsequent ones show up as C:\Documents and
Settings\rjr\desktop\Excelworksheet]!Utility!$R$232.

and in my case the path, stays this way until I open and save it in another
program on another computer and then I get the error's. They will change,
depending on the workbook that I have open and then won't compute when the
macro's are activated.

Any help, questions or ideas are welcomed.
Thanks
BOB



C:\Documents and Settings\RJR\
"BobR" wrote in message
...
Hello, Excel 2003 and 2007. I have numerous macros in my spreadsheet and
have been forced to change the name of the worksheet and workbook over the
past few weeks. Today I sent the worksheet out to others in my group and
some of the macros refer directly to the pages within the workbook, but
some of the macro's show the entire path (which doesn't esist anymore) and
won't work.
Does anyone have any ideas or know of a way to keep the macros references
directly to the existing workbook, no matter where it's located.
Thanks
Bob R



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
macro runs when workbook is saved, but only with vba change... [email protected] Excel Programming 1 January 17th 07 02:13 PM
Macro to alert when workbook saved or updated?? Is this possible? bsnapool[_17_] Excel Programming 2 July 22nd 06 01:50 AM
Problem in updating all worksheets of a workbook using a macro that calls another macro [email protected] Excel Programming 3 March 20th 06 05:21 AM
How do you run macro automatically each time workbook is saved? Husker87 Excel Programming 5 November 25th 05 02:56 PM
Run a macro each time a workbook is saved donbuz Excel Programming 2 September 16th 04 03:12 PM


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