+ Reply to Thread
Results 1 to 3 of 3

Copy worksheets and selected columns into new workbook and name each file uniquely

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    34

    Copy worksheets and selected columns into new workbook and name each file uniquely

    Hi all,

    I am looking to create separate workbooks based on the master workbook attached for each of the company's listed in the rate card tab.

    So each new workbook would contain 3 tabs - Instructions, Cover Page & Rate Card, however, only columns A:H would appear in the Rate Card tab with Columns G:H being the two columns that related to the respective company. Columns A:F in the Rate Card will always be static in each file. (An example of how each Rate Card tab will look in each new workbook are shown in worksheets labelled Company A, B, & C)

    This file is only a sample of the original. The original has 300 columns now and each company/region always has two data columns being G:H in the Rate card tab.

    Can anybody help me tweak the code below (kindly provided by another Excel Forum member) to create these new workbooks with their respective data sets and at the same time tweak the destination folder of where each file is saved? I would like to be able to set the destination folder where the files will be saved by inputting the destination at will i.e. C:\Users\master\Documents\SAP or in 3 months time it could be C:\Users\master\Documents\Old SAP Cards, etc.

    Example file:
    Rate Cards.xlsm

    Here is the current code:


    Please Login or Register  to view this content.

    Looking forward to your responses and have a great New Years Eve and 2014.
    Last edited by Mad-Dog; 12-29-2013 at 07:57 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Copy worksheets and selected columns into new workbook and name each file uniquely

    Welcome to the forum.

    Pls take some minutes to read forum rules and specially-in this case- rule#3.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    07-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Copy worksheets and selected columns into new workbook and name each file uniquely

    Hi Fotis,

    Many thanks for highlighting this and hope now I have done it correctly. If not please let me know and I will amend.

    Regards,

    Mad-Dog

+ 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. Replies: 2
    Last Post: 05-01-2013, 05:37 AM
  2. [SOLVED] Browse a File, Copy Selected data from it and paste it to other workbook (Active)
    By FCarv in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2012, 09:46 AM
  3. How to uniquely identify selected chart in VBA
    By MCCCLXXXV in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2012, 04:17 PM
  4. copy selected range from multiple workbooks into multiple worksheets in one workbook
    By novak100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-13-2012, 05:52 AM
  5. Replies: 1
    Last Post: 10-17-2005, 04:05 AM

Tags for this Thread

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