Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Buttons re-assigned themselves to the right macro name but in Book

Hi All
I have one workbook (created in excel 2003 for Mac) with multiple sheets,
formulas & macros.
The macros are linked to buttons which have come from the form menu.

I created the macro's in the current Workbook saved in "Module 1" and all
are "General".
The macros do tasks like:

- copying the current worksheet to a new workbook & clearing out items not
required (eg. named ranges, objects, buttons, etc)
- running data updates
- formatting cells etc.
During testing - they all worked great - with and without assigning them to
buttons...

I sent the workbook to the Users who use Windows PC's - Vista - Excel 2007.
The buttons worked great on the first click... but after that the error
message "Book1 could not be found"
appeared. The buttons all re-assigned themselves to "Book1" (which doesn't
exist)?
e.g. Book1!mba

How can I make the buttons stick to the assigned macros in the current
workbook.
I can't hard code a workbook name - as the workbook will be renamed / saved
as.
Can anyone help me with a way to avoid this from happening?
--
Thank for your help
BeSmart
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Buttons re-assigned themselves to the right macro name but in Book

One more piece of information..

The buttons are named ("extractmba" = Button 6) so that specific buttons can
be nominated and deleted during one of the macros.

Thank for your help
BeSmart
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
Use Macro To Change Which Macro Assigned To Command Button CVinje Excel Discussion (Misc queries) 0 May 25th 10 09:55 PM
copy macro assigned buttons in an array Phatboy_D Excel Worksheet Functions 1 December 1st 04 10:01 PM
Macros assigned to buttons do not work when copied to CD Bill Cockerill Excel Programming 2 February 20th 04 12:33 PM
Buttons assigned to a macro Tokash Excel Programming 0 September 12th 03 08:58 PM
Problem with macros assigned to toolbar buttons Greg Wilson[_3_] Excel Programming 1 September 8th 03 07:50 PM


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