+ Reply to Thread
Results 1 to 2 of 2

Excel Error on file save

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    Home
    MS-Off Ver
    Excel 2003
    Posts
    23

    Excel Error on file save

    So Guys I have this excel macro enabled document everything works fine.

    In the document I had 5 tabs/Worksheets. My boss asked if we can delete the instructions worksheet and basically have another excel file in the folder where we can edit those instructions and so everytime user opens the main file that instructions tab will get copied over on open event.

    So basically Importing Worksheet from a Closed Workbook.

    Now when I do this. This code works perfectly. This will move worksheet when run or delete work sheet when run.

    Please Login or Register  to view this content.
    I put these two Sub's in 2 different modules

    Then I went to ThisWorkbook under Visual basic and on the open event I typed in the following

    Please Login or Register  to view this content.
    So basically if instructions tab exist then delete it and the second one will copy it over from other workbook.

    After doing this. I save and reopen the file everything is still working fine but then Once I try to SAVE the main file I get this error.

    error1.jpg

    When I click Continue it pops up the SAVE AS when I click Save I get
    error1.jpg

    When I click Ok on that I get

    error1.jpg


    Please help me with this. Why is this error coming up what am I doing wrong. I checked the whole file before entering this code in that deletes and moves over a sheet from workbook. IT WORKS PERFECTLY FINE. Right when I enter this code it starts to do this. Please it's very urgent.

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    08-09-2012
    Location
    Anch, Alaska
    MS-Off Ver
    2003, 2010, 2013
    Posts
    131

    Re: Excel Error on file save

    I tested your code and as you stated it works fine.
    I had to comment out the following lines due to not knowing what is needed to be selected or what information to provide:
    Please Login or Register  to view this content.
    I did not receive the errors that you encountered, I ran the code and saved without any errors.
    Can you give more info on what is in the Select Product sheet?
    That way everything can be tested, it could be something within these (2) lines.
    Give Credit When Credit Is Due - Click On the Star
    Be Sure To Mark Your Post [Solved] When You Get Your Answer

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1