+ Reply to Thread
Results 1 to 3 of 3

VBA - Loop Master template and create Regional Workbooks

  1. #1
    Registered User
    Join Date
    07-09-2015
    Location
    birmingham, england
    MS-Off Ver
    MS Office 2007
    Posts
    2

    VBA - Loop Master template and create Regional Workbooks

    Hi, i am struggling to find some code i need to automate a report for a project at work.

    I have a workbook called "Store Record Card - Commercial New TEST.xlsm" with a tab "store graphs" and a list of branches and regions in rows 2 to 37 (which are hidden, see below). The branch list relates to a data validation in cell b1 which runs the tab, every time you change the drop down box in cell b1 to a new branch, the tab then reflects the branches sales below etc..

    I need a macro which runs through the list in b1, copies and PSV's the "store graphs" tab into a new workbook. I need the macro to create 5 regional workbooks each with there respective branches in and the regional summary. Then i need these 5 workbooks saved on the network as the region name and date (mmm/yy).

    (C3:C36) (F3:F36)
    Branch List Regional List
    BARNSTAPLE Region 1
    BIRMINGHAM Region 3
    BRISTOL Region 1
    CAMBRIDGE Region 5
    CARDIFF Region 2
    CHELTENHAM Region 2
    COVENTRY Region 4
    HALL GREEN Region 3
    HEAD OFFICE NA
    HEREFORD Region 2
    HULL Region 4
    LEICESTER Region 4
    LICHFIELD Region 4
    LIVERPOOL Region 3
    LONDON Region 5
    LUTON Region 5
    MANCHESTER Region 3
    NEWTON ABBOT Region 1
    NORTHAMPTON Region 4
    NOTTINGHAM Region 4
    OLD HO SALES NA
    PLYMOUTH Region 1
    SOUTHPORT Region 3
    SWANSEA Region 2
    SWINDON Region 1
    TRURO Region 1
    WORCESTER Region 2
    WREXHAM Region 2
    YEOVIL Region 1
    Region 1 Region 1
    Region 2 Region 2
    Region 3 Region 3
    Region 4 Region 4
    Region 5 Region 5

    Can anyone help me with this as i am struggling.

    Thanks in advance

  2. #2
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: VBA - Loop Master template and create Regional Workbooks

    Can you upload the workbook.....
    Lokesh Kumar
    Stay Hungry.. Stay Foolish..
    _________________________________________________________
    Please Click STAR to Add Reputation if my/someone's answer helped!

  3. #3
    Registered User
    Join Date
    07-09-2015
    Location
    birmingham, england
    MS-Off Ver
    MS Office 2007
    Posts
    2

    Re: VBA - Loop Master template and create Regional Workbooks

    I have attached the tab which gives you an idea of what i need done. The links won't work as it pulls from a data tab which was too big to upload. Unhide rows to see the branch and region list.

    I hope this helps.
    Attached Files Attached Files

+ 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. Master sheet into template, copy template to sheets named after master column.
    By M4R1N3R in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2015, 12:24 PM
  2. Master Template to operate multiple workbooks VBA 2007
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-23-2013, 02:09 PM
  3. Creating Workbooks from a Master with template
    By bradwatt in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-27-2011, 02:52 AM
  4. Loop through workbooks copy sheet to master
    By Sirishgreen in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 05-15-2008, 09:30 AM
  5. create a master worksheet template
    By Derek in forum Excel General
    Replies: 0
    Last Post: 01-10-2006, 11:45 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