+ Reply to Thread
Results 1 to 3 of 3

Selecting & copying a variable range

  1. #1
    Registered User
    Join Date
    08-03-2011
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    22

    Selecting & copying a variable range

    Hello

    I am having trouble coming up with the proper code to select a variable range.
    The situation is that I have courses that have a various numbers of students emailed to me in a select format and I want to be able copy that information into a new sheet and have the information re-organized and pasted into a new master list.

    Since I was unable to sort out the variable codes I have been selecting many more cells than necessary with a very messy code!

    I have included a modified version of the file that will hopefully make sense

    Thanks!
    Attached Files Attached Files
    Last edited by KaitMacN; 08-26-2011 at 12:35 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Selecting & copying a variable range

    KaitMacN,

    Attached is a modified version of your Unit workbook. The Paste macro has been deleted and the object assigned to the Paste macro has been reassigned to the Copy macro. In the 'Entry' sheet, rows 55 to 105 have been deleted including the object that was assigned to the Copy macro. All you need to do is click the object in the 'Master' sheet to run the new Copy macro to pull in information as desired. The Copy macro has been updated to the following:
    Please Login or Register  to view this content.


    Hope that helps,
    ~tigeravatar
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-03-2011
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Selecting & copying a variable range

    Thanks so much! That is a much more elegant and effective code AND it actually does what I wanted unlike mine :P

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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