Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Lost all my macros

I have a workbook with many macros in it and tried to use it on another
computer.

When I opened it, I got the message, "Microsoft excel experienced an
error and was able to recover by dropping VBA" (or something like
that).

I opened it and it looked okay, but I didn't realise it had dropped all
my VBA code and did a lot of non-vba development on it that I can't
afford to lose.

I have an earlier version of the file which still has the vba code
though. How do I go about bringing that VBA code into my latest version
of the file?

Thanks guys

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Lost all my macros

I sometimes encounter a similar error on computers at my work. The
error I get tells me that there is an error accessing the system
registry and that the VBA Project was lost along with ActiveX controls.

Out IT Manager says it is due to my not having local administrator
access on some computers.

Not sure if that will help you, but just a thought.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 634
Default Lost all my macros

First open both files

Hit ALT+F11 and this will open the VBE (Visual Basic Editor)
Top left you will hopefully see an explorer style pane. Within this pane
you need to search for your workbook's name, and when you find it you may
need to click on the + to expand it. Within that you should see the
following:- (This is your new workbook with no macros)

VBAProject(Your_Filename)
Microsoft Excel Objects
Sheet1(Sheet1)
Sheet2(Sheet2)
Sheet3(Sheet3)
ThisWorkbook

If you have named your sheets then those names will appear in the brackets
above as opposed to what you see at the moment in my note.

Now go find your old file name and it will probably look like:-

VBAProject(Your_Filename)
Microsoft Excel Objects
Sheet1(Sheet1)
Sheet2(Sheet2)
Sheet3(Sheet3)
ThisWorkbook
Modules
Module1
Module2
Module3

Just click on and drag any modules from old file to new file and it will
copy them into it, then hit File / Close and return to Microsoft Excel and
save the file.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------



"anasttin" wrote in message
ups.com...
I have a workbook with many macros in it and tried to use it on another
computer.

When I opened it, I got the message, "Microsoft excel experienced an
error and was able to recover by dropping VBA" (or something like
that).

I opened it and it looked okay, but I didn't realise it had dropped all
my VBA code and did a lot of non-vba development on it that I can't
afford to lose.

I have an earlier version of the file which still has the vba code
though. How do I go about bringing that VBA code into my latest version
of the file?

Thanks guys



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
Lost macros after re-installation Jan SP Setting up and Configuration of Excel 1 July 31st 07 05:32 PM
Lost Macros Missy Excel Discussion (Misc queries) 2 March 22nd 07 03:04 PM
I lost my macros! Mark E. Deardorff Excel Programming 3 October 28th 05 07:40 PM
Macros and File Lost Kelli McCann Excel Discussion (Misc queries) 0 May 13th 05 12:40 AM
Lost my macros... nicholaihel Excel Programming 2 February 9th 04 02:57 AM


All times are GMT +1. The time now is 11:04 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"