+ Reply to Thread
Results 1 to 4 of 4

Dialogue box needed to copy range

  1. #1
    Forum Contributor
    Join Date
    10-28-2009
    Location
    Portland, Maine
    MS-Off Ver
    Excel 2003
    Posts
    102

    Dialogue box needed to copy range

    - I need to copy a range from a worksheet (sheet5.)

    - There are 30 named ranges MOD_01 through MOD_30

    - I need a macro that copies the range from sheet5. to sheet1. (Easy I know…that part I can do!)

    - However, I do not want to make 30 buttons (which is the only way I could do it at my current level).

    - Instead need one macro that opens a dialogue box which allows me to select between 01 and 30 (preferable a dropdown between 01-30).

    - The number returned would be concatenated with the (MOD_&‘returned number’) to define which range needs to be copied.

    - The copied range needs to be pasted to
    Please Login or Register  to view this content.
    - I honestly don’t know where to start with this one.

    - I have attached a sample file. In this I only have named ranges MOD_25 through MOD_30. The sample file shows a simple macro to copy and paste one of the ranges (mod_30) with no dialogue box but that doesn't really help much...

    Please Login or Register  to view this content.
    Any help will be greatly appreciated!
    Thanks!!!!
    Attached Files Attached Files
    Last edited by yunesm; 04-08-2010 at 06:20 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Dialogue box needed to copy range

    Hi yunesm

    Try the attached and see if it does what you require.

    Let me know of issues.

    John
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Forum Contributor
    Join Date
    10-28-2009
    Location
    Portland, Maine
    MS-Off Ver
    Excel 2003
    Posts
    102

    Re: Dialogue box needed to copy range

    Thanks John! This is exactly what I was looking for!
    Thanks again,
    Mike

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Dialogue box needed to copy range

    Hi Mike

    Glad it works for you. Please be aware there is no error checking in the event the user selects a non-existent MOD. Also, the named range of the MOD's is not dynamic so, if you add MOD's beyond 30, the named range will need to be changed (or make it dynamic).

    If you're so inclined, click on the scales for rep points. It's appreciated.

    John

+ 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