+ Reply to Thread
Results 1 to 6 of 6

Problem running "Save macro to all workbook in folder"

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Problem running "Save macro to all workbook in folder"

    Hi,

    I have a workbook that a macro to run an macro into every single excel file on a folder, but it doesn't do anything when I try to run it.

    I have attach the folder example..

    test.zip

    Thanks

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Problem running "Save macro to all workbook in folder"

    You appear to have the comment "Assign selected folder to MyFolder" inside a string.
    Martin

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Problem running "Save macro to all workbook in folder"

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Problem running "Save macro to all workbook in folder"

    Great!!! Thank you very much!!

  5. #5
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Problem running "Save macro to all workbook in folder"

    But another thing. I have to insert a copyright in the bottom of each spreadsheet file. The copyright is in the Macro file in Sheet 2. When it copy to the other spreadsheet, it doesnt copy anything becuz on the 'other spreasheet' the Sheet 2 is blank. How can I force the "other spreadsheet" to add copyright that is on the Macro file?

    In the macro file, I have this code:
    Please Login or Register  to view this content.
    This call the macro to go and copy the info in Macro-Sheet 2, and paste in Sheet 1.

    Now that I am applying the macro to an external file, how can it copy from this Macro-Sheet 2?

    Thanks.

  6. #6
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Problem running "Save macro to all workbook in folder"

    Any clue anyone?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Create a Command Button to "Save As" and "Close" an Excel Workbook
    By thedunna in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-26-2013, 05:38 PM
  2. [SOLVED] Macro to get worksheets to save to new workbook with OPEN workbooks .PATH & " " as name.
    By NicksDad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2012, 08:07 PM
  3. Running a macro "On Save"
    By heski in forum Excel General
    Replies: 2
    Last Post: 05-18-2006, 09:00 AM
  4. Backup to specific folder if workbook names begins with "NSR" or "MAC"
    By GregR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2005, 08:06 PM
  5. save and restore "Workbook Menu Bar" & "Cell" menus
    By Jeff Higgins in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2005, 10:08 PM

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