Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a spreadsheet from someone else that contains a macro that runs when
the workbook opens. I want to edit that macro, but since the macro also saves the workbook with a new name, I cannot get to the macro (without triggering it). Is there any way to edit the macro outside of Excel? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Jim,
You can disable code that runs when workbook opens by depressing the Shift key when you open the workbook. --- Regards, Norman "Jim D." wrote in message ... I have a spreadsheet from someone else that contains a macro that runs when the workbook opens. I want to edit that macro, but since the macro also saves the workbook with a new name, I cannot get to the macro (without triggering it). Is there any way to edit the macro outside of Excel? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I tried that. The workbook opens with a message saying "you must enable
macros," and when I go to view macros, there aren't any listed. But I can view the Excel file in a text editor and see some of the commands--for example, the one that saves the spreadsheet with a new name. Very puzzling. Jim Dutton ================== "Norman Jones" wrote: Hi Jim, You can disable code that runs when workbook opens by depressing the Shift key when you open the workbook. --- Regards, Norman "Jim D." wrote in message ... I have a spreadsheet from someone else that contains a macro that runs when the workbook opens. I want to edit that macro, but since the macro also saves the workbook with a new name, I cannot get to the macro (without triggering it). Is there any way to edit the macro outside of Excel? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Jim,
With the workbook open, right-click the Excel icon on the worksheet (or the icon to the left of the File menu if your workbook is maximised) Select 'View Code' from the menu to access the Workbook_Open procedure. --- Regards, Norman "Jim D." wrote in message ... I tried that. The workbook opens with a message saying "you must enable macros," and when I go to view macros, there aren't any listed. But I can view the Excel file in a text editor and see some of the commands--for example, the one that saves the spreadsheet with a new name. Very puzzling. Jim Dutton ================== "Norman Jones" wrote: Hi Jim, You can disable code that runs when workbook opens by depressing the Shift key when you open the workbook. --- Regards, Norman "Jim D." wrote in message ... I have a spreadsheet from someone else that contains a macro that runs when the workbook opens. I want to edit that macro, but since the macro also saves the workbook with a new name, I cannot get to the macro (without triggering it). Is there any way to edit the macro outside of Excel? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Set your security to medium and when the dialog ask whether you wnat to
enable macros just say no. Now you can edit the code... -- HTH... Jim Thomlinson "Jim D." wrote: I have a spreadsheet from someone else that contains a macro that runs when the workbook opens. I want to edit that macro, but since the macro also saves the workbook with a new name, I cannot get to the macro (without triggering it). Is there any way to edit the macro outside of Excel? |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Jim,
I have a spreadsheet from someone else that contains a macro that runs when the workbook opens. I want to edit that macro set a higher security level on macros in extras/macro/security. when opening the file, disable macros. then they will not run and you can edit them. arno |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Open the workbook and disable the macros; that way it will not run on
opening and you can edit it. -- Cheers Nigel "Jim D." wrote in message ... I have a spreadsheet from someone else that contains a macro that runs when the workbook opens. I want to edit that macro, but since the macro also saves the workbook with a new name, I cannot get to the macro (without triggering it). Is there any way to edit the macro outside of Excel? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Edit Macros | Excel Discussion (Misc queries) | |||
cannot edit macros in excel 2007 | New Users to Excel | |||
Excel 2007 Beta - can't edit macros | Excel Discussion (Misc queries) | |||
Add, edit, delete, save functions in excel using macros | Excel Programming | |||
how can i edit excel 4 macros in Excel 2003 | Excel Worksheet Functions |