Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default auto-open macro lost within workbook

A few years back, I built a large XL97 spreadsheet which includes a
macro called "CreateMenu" that inserts a custom pull-down item in the
menu bar. The macro runs and creates the menu items when the file is
opened, and runs again when the file is closed. I've used this macro on
several workbooks, and in every other case I can find a macro named
"CreateMenu()" as a step in the AutoOpen macro and a macro named
"DeleteMenu()" as a step in the AutoClose macro.

I want to revise the menu items on this large XL97 spreadsheet, but I
can't find the macro. There is no reference to the a menu macro in the
AutoClose macro, and there is no AutoOpen macro that I can see. Somehow
the access to those macros seems to have gotten lost as the file has
migrated from machine to machine to machine with each upgrade. I also
can't find any links to any other workbooks. There are no worksheets,
columns or workbooks to "unhide." I figure that if I can find the
AutoOpen macro, it would should me the link to the menu creation macro.

any ideas of where it might be hinding?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default auto-open macro lost within workbook

Look under the ThisWorkbook module for
Workbook_open
and
workbook_beforeclose

ps. Auto_Open and Auto_Close would be what you want to look for.

And it sounds like your code was based on John Walkenbach's menumaker:
http://j-walk.com/ss/excel/tips/tip53.htm

(Just in case you need it.)

windsurferLA wrote:

A few years back, I built a large XL97 spreadsheet which includes a
macro called "CreateMenu" that inserts a custom pull-down item in the
menu bar. The macro runs and creates the menu items when the file is
opened, and runs again when the file is closed. I've used this macro on
several workbooks, and in every other case I can find a macro named
"CreateMenu()" as a step in the AutoOpen macro and a macro named
"DeleteMenu()" as a step in the AutoClose macro.

I want to revise the menu items on this large XL97 spreadsheet, but I
can't find the macro. There is no reference to the a menu macro in the
AutoClose macro, and there is no AutoOpen macro that I can see. Somehow
the access to those macros seems to have gotten lost as the file has
migrated from machine to machine to machine with each upgrade. I also
can't find any links to any other workbooks. There are no worksheets,
columns or workbooks to "unhide." I figure that if I can find the
AutoOpen macro, it would should me the link to the menu creation macro.

any ideas of where it might be hinding?


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default auto-open macro lost within workbook

Dave .& John .. maybe my lost menu macro is related to my date problem
that Dave addressed in the general EXCEL board, but I suspect not.
Unlike the date option which works correctly when moved from my DELL to
IBM computers, the lost menu macro is also no where to be found when
opened on the IBM.

I've searched the project for "Auto_Open" without success using find.
the procedure does find the "Auto_Close" macro. What I find really
strange is that the "DeleteMenu" macro is not shown in the Auto_Close
macro, even though it undoubtedly is executed. I've check again and
again, and "Auto_Open" macro is not shown in the list of macros that you
can RUN even when you don't restrict list to those in the open workbook.

Your guess that I'm using Walkenbach's menumaker is correct. My son has
latched onto as well for his Excel workbooks.

My solution to this problem is going to be just to copy all the data and
macros into a new workbook, and reconfigure everything. It is
intellectually challenging to try to figure out what is happening, but I
think it will be faster to go back a rebuild spreadsheet.

Thanks for help.

Dave Peterson wrote:
Look under the ThisWorkbook module for
Workbook_open
and
workbook_beforeclose

ps. Auto_Open and Auto_Close would be what you want to look for.

And it sounds like your code was based on John Walkenbach's menumaker:
http://j-walk.com/ss/excel/tips/tip53.htm

(Just in case you need it.)

windsurferLA wrote:
A few years back, I built a large XL97 spreadsheet which includes a
macro called "CreateMenu" that inserts a custom pull-down item in the
menu bar. The macro runs and creates the menu items when the file is
opened, and runs again when the file is closed. I've used this macro on
several workbooks, and in every other case I can find a macro named
"CreateMenu()" as a step in the AutoOpen macro and a macro named
"DeleteMenu()" as a step in the AutoClose macro.

I want to revise the menu items on this large XL97 spreadsheet, but I
can't find the macro. There is no reference to the a menu macro in the
AutoClose macro, and there is no AutoOpen macro that I can see. Somehow
the access to those macros seems to have gotten lost as the file has
migrated from machine to machine to machine with each upgrade. I also
can't find any links to any other workbooks. There are no worksheets,
columns or workbooks to "unhide." I figure that if I can find the
AutoOpen macro, it would should me the link to the menu creation macro.

any ideas of where it might be hinding?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default auto-open macro lost within workbook

It almost sounds like you're opening the wrong workbook. Are you sure you have
the workbook with the correct macros on that pc?

windsurferLA wrote:

Dave .& John .. maybe my lost menu macro is related to my date problem
that Dave addressed in the general EXCEL board, but I suspect not.
Unlike the date option which works correctly when moved from my DELL to
IBM computers, the lost menu macro is also no where to be found when
opened on the IBM.

I've searched the project for "Auto_Open" without success using find.
the procedure does find the "Auto_Close" macro. What I find really
strange is that the "DeleteMenu" macro is not shown in the Auto_Close
macro, even though it undoubtedly is executed. I've check again and
again, and "Auto_Open" macro is not shown in the list of macros that you
can RUN even when you don't restrict list to those in the open workbook.

Your guess that I'm using Walkenbach's menumaker is correct. My son has
latched onto as well for his Excel workbooks.

My solution to this problem is going to be just to copy all the data and
macros into a new workbook, and reconfigure everything. It is
intellectually challenging to try to figure out what is happening, but I
think it will be faster to go back a rebuild spreadsheet.

Thanks for help.

Dave Peterson wrote:
Look under the ThisWorkbook module for
Workbook_open
and
workbook_beforeclose

ps. Auto_Open and Auto_Close would be what you want to look for.

And it sounds like your code was based on John Walkenbach's menumaker:
http://j-walk.com/ss/excel/tips/tip53.htm

(Just in case you need it.)

windsurferLA wrote:
A few years back, I built a large XL97 spreadsheet which includes a
macro called "CreateMenu" that inserts a custom pull-down item in the
menu bar. The macro runs and creates the menu items when the file is
opened, and runs again when the file is closed. I've used this macro on
several workbooks, and in every other case I can find a macro named
"CreateMenu()" as a step in the AutoOpen macro and a macro named
"DeleteMenu()" as a step in the AutoClose macro.

I want to revise the menu items on this large XL97 spreadsheet, but I
can't find the macro. There is no reference to the a menu macro in the
AutoClose macro, and there is no AutoOpen macro that I can see. Somehow
the access to those macros seems to have gotten lost as the file has
migrated from machine to machine to machine with each upgrade. I also
can't find any links to any other workbooks. There are no worksheets,
columns or workbooks to "unhide." I figure that if I can find the
AutoOpen macro, it would should me the link to the menu creation macro.

any ideas of where it might be hinding?



--

Dave Peterson
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
How to code VBA: Auto open workbook and run macro March Excel Discussion (Misc queries) 4 November 8th 07 08:25 PM
auto-open macro lost within workbook windsurferLA Excel Programming 2 December 16th 06 11:09 PM
auto run macro on workbook open Mcasteel[_45_] Excel Programming 0 November 15th 04 03:04 PM
auto run macro on workbook open Mcasteel[_43_] Excel Programming 2 November 15th 04 02:57 PM
auto run macro at workbook open Juan Guemes Excel Programming 2 August 28th 04 10:55 PM


All times are GMT +1. The time now is 08:00 AM.

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"