Results 1 to 9 of 9

VBA Create new workbook and copy paste data

Threaded View

  1. #1
    Registered User
    Join Date
    09-05-2014
    Location
    canada
    MS-Off Ver
    2010
    Posts
    5

    VBA Create new workbook and copy paste data

    I'm new to the forums and just started learning VBA. I was wondering if anyone could provide some assistance in creating a VBA macro to do the following:

    I have a set of data in one workbook which I'll call Workbook1 for instance.

    For example, if there is information on a PivotTable like this:

    I would like to create a macro (an inputbox maybe) to search for a region (A for example) and create a new workbook & save with the region's name (A.xls for example). The more complicated part would be to then copy the information to the new workbook from columns "office - total" and all the rows from office AA to total. I tried to figure this out searching through the forums but couldn't quite put everything together. Any help would be much appreciated!

    Thanks

    Edit: What i'm trying to aim at is to be able to input a region in the source workbook and automatically create a new workbook with the inputted region. The new workbook should then be automatically populated with information under the region from the source workbook.

    I've attached a test spreadsheet which I'm using to try and replicate the effect but with less complex data.
    Attached Files Attached Files
    Last edited by jayt91; 09-05-2014 at 11:34 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 03-26-2014, 11:40 PM
  2. Replies: 6
    Last Post: 01-29-2013, 07:01 AM
  3. [SOLVED] create workbook and paste data and cut paste columns
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-17-2012, 04:22 AM
  4. Copy data from workbook, create new workbook, paste data to new worbook?
    By mpkavanagh in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-16-2011, 06:39 PM
  5. Replies: 1
    Last Post: 10-17-2005, 04:05 AM

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