+ Reply to Thread
Results 1 to 2 of 2

Changing set range to a variable range in macros

  1. #1
    Registered User
    Join Date
    03-11-2013
    Location
    Pittsfield, MA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Changing set range to a variable range in macros

    I recorded a macro in which I selected a range to paste values. The issue is that I need the macro to paste the values in a different column depending on a given set of criteria.
    The criteria is as follows:[INDENT]For each set of data I have created a cell that tells me the desired location (row # and column letter) of the values[INDENT]I need the macro to look at those cells and from them know where to paste the values I selected.

    Here is my current macro:
    Please Login or Register  to view this content.
    I feel like I am close but have been unable to run the macro without errors. Any help would be greatly appreciated.
    Last edited by arlu1201; 03-14-2013 at 02:39 PM. Reason: Use code tags in future.

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Changing set range to a variable range in macros

    You are actually very close!

    If D2 contains the text Z100 and C2 contains the text Z101, the you want:

    Please Login or Register  to view this content.
    Gary's Student

+ 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