+ Reply to Thread
Results 1 to 5 of 5

Vba to Create copy of worksheet and range of cells to used to calculate inputs.

  1. #1
    Registered User
    Join Date
    01-18-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    28

    Vba to Create copy of worksheet and range of cells to used to calculate inputs.

    I am trying to make a calculation sheet that will with the press of a button and creation of a drop down box then create a several worksheets with calculations

    1. is it even possible to use a VBA to create a worksheet with data in it?
    2. I am attaching a sample of the sheets I want to create with the VBA and want them to duplicate based on the drop down box. I.e if the drop down box says 2 it would repeat those sheets so I would have two sets of sheets.


    I am new to VBA and macros, I am trying to learn and searched this everywhere. I would prefer to do it myself instead of copying and pasting so directing me to somewhere would be more than enough. Calctest.xlsx
    Last edited by Wyliecody; 02-01-2012 at 09:35 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Vba to Create copy of worksheet and range of cells to used to calculate inputs.

    Create a template sheet
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    01-18-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Vba to Create copy of worksheet and range of cells to used to calculate inputs.

    and then tag the Template in code?

    I want to use a command button to unhide the sheet or create it from the template.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Vba to Create copy of worksheet and range of cells to used to calculate inputs.

    This code will unhide a Template sheet, copy & rename it, then hide the template

    Please Login or Register  to view this content.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Vba to Create copy of worksheet and range of cells to used to calculate inputs.

    Thanks for the rep, if this is solved please mark the thread as solved


    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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