Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro that copiesother macros to a new workbook

I am aware of one VBA method for copying a worksheet and it's local macros
to a new workbook. In short, it uses Export and Import commands that
temporarily dis-associate the macro from the worksheet.

The problem arises if the worksheet uses macro hot spots. When the
spreadsheet and its macros are reunited in the new workbook, the hot spot
assignment (pointers) are not automatically updated. Thus they do not find
the local macro because the path has changed. Keyboard activation of the
macros and drop-down menus work fine, so the problem is with hot spots and
not the macros

I've tried numerous ideas to automatically relink the hot spots and macros
via another macro. But worksheet_activate(), error messages and other Excel
events interact with the copying macro and haven't worked.

Is there another general VBA technique for copying a worksheet and its
associated macros?

..


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
can't find macros in a macro-enabled workbook Dave F[_2_] Excel Programming 6 August 20th 07 04:48 PM
Unwanted Macro Warning for workbook containing no macros Sameer[_2_] Excel Discussion (Misc queries) 2 June 9th 07 01:07 PM
Calling up the macro dialog to list stored macros in a workbook-VB mason Excel Programming 1 March 22nd 07 09:07 PM
callin the macro dialog to list all stored macros in a workbook VB mason Excel Programming 1 March 22nd 07 05:34 PM
Macro warning when no macros in workbook BillS[_2_] Excel Programming 15 October 25th 03 01:29 PM


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