+ Reply to Thread
Results 1 to 3 of 3

Copy range based on cell value

  1. #1
    Registered User
    Join Date
    03-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    48

    Copy range based on cell value

    I have the code to copy a range from a sheet.

    Please Login or Register  to view this content.
    The range on the sheet is a sign up form for 30 names.

    If I change the number (in the area in red), I can control how many times it copies the range. I'd like to be able to enter a number (Like RSVP total) in a cell on another sheet, click a button, and it copies the range so there are enough sign up forms to sign in.


    I'm still muddling through all this VBA stuff and I thank everyone here that has been helping me.

    Also, does anyone know if it's possible to copy ranges from hidden sheets? Like maybe pull a bunch of forms together to make a packet but not have all the tabs ( I have over 30) at the bottom of every form/ document?

    Thanks.
    Last edited by jumonjii; 04-18-2014 at 07:54 PM.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Copy range based on cell value

    Hi jumonjii,

    If I understand well, something like that might work.
    Make sure to refer to the range by using the sheet name.
    Also, no need to use .Activate as it slows down your code.

    Please Login or Register  to view this content.
    So this will copy the range A1:E1 in "Hidden Sheet" to "Visible Sheet", the number of times iti is written in cell A1 of "Other sheet"
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    03-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Copy range based on cell value

    Thanks! I'll have to play with this tomorrow and get back to you.

+ 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. How to copy a cell range based on an individual cell
    By Merlin_Stryker in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-15-2014, 01:18 PM
  2. Copy cell range to another workbook based on a value
    By Sassyponypants in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2013, 09:37 AM
  3. [SOLVED] Copy data from a range of cells into a blank range based on common cell
    By vanmeterkj in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-03-2012, 10:18 AM
  4. How to copy a cell range based on a condition
    By GregoryA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-17-2012, 01:42 AM
  5. Copy a range based on a cell value
    By tuke016 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2011, 10:46 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