+ Reply to Thread
Results 1 to 2 of 2

Macro to create sets of tables based on number input

  1. #1
    Registered User
    Join Date
    04-18-2014
    Location
    Nowhere
    MS-Off Ver
    Excel 2010
    Posts
    11

    Macro to create sets of tables based on number input

    Hi,

    I'm working on creating a calculation sheet to find the pressure drop in various branches of pipe.
    Branches Sheet contains a couple basic inputs. The main thing is the number of branches.
    Liquid Branch Template Sheet contains the branch format I'd like for each branch.
    Pipe Data Sheet just has formula and sizing information.

    I've never made a macro before, but I'd like to be able to input "Number of Branches - 5" and have a new sheet created with 5 copies of the Liquid Branch Template, labeled Branch 1, 2, etc.

    Does anyone know of a good video or tutorial that'd show me how to accomplish this?


    PipeTest.xlsx


    Thanks!

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: Macro to create sets of tables based on number input

    The attached file uses event code (right-click the sheet tab and select "View Code" to see it...) If you want to keep existing sheets when you delete the value in C7:D7 then un-comment these two lines to prevent the sheet(s) being deleted when the cell is emptied.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Pipe Test.xlsm
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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. Generating Macro to create multiple duplicate cells based on an input reference
    By Jomian in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2013, 08:25 PM
  2. [SOLVED] Create serial numbers based on a single input number.
    By jmp601 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-08-2013, 11:33 AM
  3. Macro to create a template based on user input
    By redman742 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-27-2012, 10:59 PM
  4. Create mutiples Cells based on input number
    By perrierf in forum Excel General
    Replies: 3
    Last Post: 10-28-2011, 08:11 AM
  5. Macro request: Create and Search two sets; return number of duplicates
    By Breex243 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-04-2010, 05:46 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