Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default How do you edit macros outside of Excel?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default How do you edit macros outside of Excel?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default How do you edit macros outside of Excel?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default How do you edit macros outside of Excel?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default How do you edit macros outside of Excel?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default How do you edit macros outside of Excel?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default How do you edit macros outside of Excel?

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
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
Edit Macros robert morris Excel Discussion (Misc queries) 0 November 26th 09 06:08 AM
cannot edit macros in excel 2007 ben New Users to Excel 3 September 12th 08 05:38 AM
Excel 2007 Beta - can't edit macros Rick L Excel Discussion (Misc queries) 0 May 26th 06 04:21 PM
Add, edit, delete, save functions in excel using macros tweety127[_2_] Excel Programming 3 May 22nd 06 10:15 PM
how can i edit excel 4 macros in Excel 2003 Pedrito1967 Excel Worksheet Functions 0 December 7th 04 07:21 PM


All times are GMT +1. The time now is 03:17 AM.

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"