Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2008

Tip: Looking for answers? Try searching our database.

Macro problem where workbook name is saved in another name and macro reference changes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BobR - 18 Mar 2008 17:02 GMT
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
BobR - 22 Mar 2008 03:44 GMT
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\
> 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
[quoted text clipped - 6 lines]
> Thanks
> Bob R
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.