Welcome to MacForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Excel Macro Problem

 
   Macintosh computer (Home) -> Excel RSS
Next:  Applescript to delete from server?  
Author Message
HLP

External


Since: Aug 06, 2004
Posts: 1



(Msg. 1) Posted: Fri Aug 06, 2004 8:51 am
Post subject: Excel Macro Problem
Archived from groups: microsoft>public>mac>office>excel (more info?)

I just upgraded my Mac to Office 2004. I am trying to open some older
Excel files that were created on a PC that have Macros in them. The
opened fine in Office X. They open fine but when I close the Excel
file it says the Excel has unexpectedly quit. It asks if I want Excel
to try to recover the file and restart Excel. I deselect that option,
but the next time I open Excel it automaticaly opens that file again
that caused it to quit. Then I get stuck in a circle of opening Excel,
it opens the file, I quit the file, Excel crashes. I get out of the
cycle by throwing away Excel prefs but then anytime I try to open any
of these PC files with Macros in them it does it again. I have tried
this on two separate Macs and it does the same thing. Any suggestions?

Thanks

 >> Stay informed about: Excel Macro Problem 
Back to top
Login to vote
JE McGimpsey

External


Since: Mar 07, 2004
Posts: 2394



(Msg. 2) Posted: Fri Aug 06, 2004 12:29 pm
Post subject: Re: Excel Macro Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
hpiper DeleteThis @ag.org (HLP) wrote:

 > I just upgraded my Mac to Office 2004. I am trying to open some older
 > Excel files that were created on a PC that have Macros in them. The
 > opened fine in Office X. They open fine but when I close the Excel
 > file it says the Excel has unexpectedly quit. It asks if I want Excel
 > to try to recover the file and restart Excel. I deselect that option,
 > but the next time I open Excel it automaticaly opens that file again
 > that caused it to quit. Then I get stuck in a circle of opening Excel,
 > it opens the file, I quit the file, Excel crashes. I get out of the
 > cycle by throwing away Excel prefs but then anytime I try to open any
 > of these PC files with Macros in them it does it again. I have tried
 > this on two separate Macs and it does the same thing. Any suggestions?

First, after a crash, you should be asked if you want to open the
file(s) that were open when the crash occurred - clicking on Do Not Open
should allow you to open XL without cycling. You can also start XL with
the Shift key down.

Sometimes code modules (especially if they've been edited frequently)
get corrupted, which can cause crashes. If you have access to a PC, you
can run Rob Bovey's Code Cleaner:

<a style='text-decoration: underline;' href="http://www.appspro.com/Utilities/CodeCleaner.htm" target="_blank">http://www.appspro.com/Utilities/CodeCleaner.htm</a>

You can do the same thing manually in MacOffice by opening the file with
the Shift Key down. Open the VBE. For each module, copy the text (I copy
all but the last letter, but that's superstition), and paste it into a
text editor (if you use TextEdit, be sure to be in plain text mode).
Delete the module, create a new one, copy the text from the text editor
and paste it into the new module. In most cases, before I ship an
application, I create a new workbook, and transfer any code in the
ThisWorkbook or Worksheet code modules, as well as the regular modules,
via the text editor.

If that doesn't solve the problem, check for BeforeClose or
Workbook_Deactivate event macros. If they exist, try setting a
breakpoint at the first step and close the workbook - the step through
the code to see if you can tell where the quit is coming from.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Excel Macro Problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Excel Macro (AppleScript) problem. - I have been trying to write an Excel Macro (or AppleScript) to do the following: Open Excel sheet. Open Explorer Find data. Copy data. Quit Explorer Return to Excel Paste data. End I do this manually and it works beautifully. Both the recorded Macro....

Excel - Macro's - Can I open Windows Excel file with MAcro's in Excel 2004 for MAc?

EXCEL 2007 macro - I am having a problem in EXCEL 2007 with macros that have worked since EXCEL 98. I am trying to copy data from a spreadsheet and copy it to a line graph. The NEW date for the X axis is in column A and the NEW points for the line graphs are in severa...

Excel Macro Question - Hi- I am trying to record a simple macro that will: - Run the "Text to Column" command on the selected cell - Split the contents of the cell based on the space delimiter - Deliver the results to the selected cell and subsequent cells to the ri...

Excel Macro Difficulties - I am having problems with an Excel macro that was originally written on a Windows machine. This macro works completely fine on a Windows computer, but gives back all kinds of error messages on any Mac. Here is the full text of the macro. Does anyone..
   Macintosh computer (Home) -> Excel All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]