#1   Report Post  
Posted to microsoft.public.excel.misc
tjc tjc is offline
external usenet poster
 
Posts: 13
Default Macro link problem

I'm trying to create a macro that can be sent to mulitiple users to fix a
button link in a template which the users have all now saved with unique file
names. I've saved the code below in a file named Fix1.xls.

Sub Fix2()
'
ActiveSheet.Shapes("Oval 70").OnAction = "PrintAll"
End Sub

Each user will open OriginalXYZ.xls (each file will have a different file
name), select the appropriate sheet and run the macro saved in Fix1.xls.
Problem occurs when the user selects the button, it looks for the "PrintAll"
macro in the Fix1.xls file instead of where it is stored in the
OriginalXYZ.xls file causing the macro to crash.

Any suggestions on how to correct this problem?
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
Link Problem turrucan Excel Discussion (Misc queries) 0 November 27th 06 08:40 AM
Link/Hyperlinks Problem Conditional Formatting Excel Worksheet Functions 0 January 25th 06 08:51 PM
Problem with link Runar Excel Worksheet Functions 1 January 13th 06 05:10 PM
Excel Link problem Alin Excel Worksheet Functions 2 January 12th 06 02:27 PM
Macro Solution for Link Problem? Mikeice Excel Worksheet Functions 2 June 14th 05 07:49 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"