+ Reply to Thread
Results 1 to 2 of 2

Apply Macro to New File

  1. #1
    Registered User
    Join Date
    02-26-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    40

    Apply Macro to New File

    This seemed easy when I started but am have trouble now.

    I am trying to take one file and do the following steps:
    1. Create new folder based on a few cells in the file
    2. "save as" the file to the newly created folder
    3. Copy paste values the newly created file on all tabs
    4. Take newly created value file and break it up again into smaller files with just a few particular tabs (savng them in same folder)
    5. Email smaller files to individuals based on an independent excel file.

    Currently stuck on #3. It is only paste valueing one sheet instead of all of them. I've used this same block of code in another file but never in something I've just "saved as". Am I not coding it to the newly created file? is that the issue? and if so how do I do that?

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    02-26-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Apply Macro to New File

    Figured it out on my own but for anyone else wondering:

    Instead of "thisworkbook" it needed to be "activeworkbook" in step 2 and 3.

+ 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. [SOLVED] Apply Macro First UnprotectSheet After Apply Macro ProtectAgain Solved by : Sixthsense
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-02-2014, 05:32 AM
  2. Replies: 0
    Last Post: 06-12-2013, 09:05 AM
  3. [SOLVED] Help : Macro Function - unable to apply filter function after macro the file.
    By Shermaine2010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2013, 12:50 AM
  4. Apply macro to multiple CSV files and then convert to XLS or TXT file,
    By asok in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2012, 10:13 AM
  5. Apply Macro to all Worksheets in the file
    By dbthj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2011, 12:27 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