#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Macros

I am having a problem with some macros I made. The
problem is that I originally had them in one file, let's
call it "File 1"...then i made a new file to replace "File
1", "File 2". I copied and pasted the macros from File 1
to File 2. I aslo created menus which have macros
assigned to them, so I reassigned the macros so that they
would be coming from the File 2. Now, it works fine on my
computer, but on another computer (which is part of a
network), it opens File 1, when I try to run one of the
macros. I reassigned the macros on the other computer as
well, but it keeps on opening File 1 anyways. What can
the problem be?
Thanks for your time,
Andrea
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Macros

On the other computer, start Excel and do not open your workbook. Go into
View, Toolbars, Customize and delete your old custom toolbar. Then you
should get the result you want when you open your workbook.

This is a chronic problem when you "attach" toolbars to workbooks. The
attached toolbar becomes part of the user's toolbar set, and it's there
regardless of whether your workbook is opened or not when Excel is started
up subsequently. So the old toolbar blocks the new one (since they have the
same names) when the new, improved workbook is opened.

The pros do not attach toolbars to workbooks. They create them with code
when the workbook opens. This is harder though and takes a bit of time and
effort to get productive with the Commandbars object.

--
Jim Rech
Excel MVP


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
Excel 2007 macros - how to merge 5 macros together into one Sue Excel Discussion (Misc queries) 1 April 16th 08 08:36 PM
Training: More on how to use macros in Excel: Recording Macros ToriT Excel Worksheet Functions 2 February 10th 06 07:05 PM
Macro Size Limit / open macros with macros? andycharger[_7_] Excel Programming 6 February 13th 04 02:00 PM
Macros not appearing in the Tools Macro Macros list hglamy[_2_] Excel Programming 5 October 24th 03 09:10 AM
Suppress the Disable Macros / Enable Macros Dialog Shoji Karai Excel Programming 5 September 24th 03 03:10 AM


All times are GMT +1. The time now is 06:48 PM.

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

About Us

"It's about Microsoft Excel"