+ Reply to Thread
Results 1 to 7 of 7

Range equal another range

  1. #1
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Range equal another range

    The macro below selects a range. How can I make Range("IQ40") = the selection below? I would like to do this without copy and paste.


    HTML Code: 

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Range equal another range

    Try:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Re: Range equal another range

    That worked like a champion. Thanks

    Also, if you dont mind,

    Right now I have it going down column IA and selecting between two values and column IO to select the values between these two.
    HTML Code: 
    I am using:
    HTML Code: 
    before this to acomplish this.

    Is there a way to just use

    HTML Code: 
    instead of having to put and "x" and just have it offset instead?

    So basically seach column "IA" and select all the values between "12 / 15 Passeng" and "12 / 15 Passeng Total" and all the values between IA and IO. Like it is doing now, but without the "x"

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Range equal another range

    Try:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Re: Range equal another range

    When i run that it puts "12 / 15 Passeng" in IQ40 and all the cells to the right through JE40. Those 15 cells contal the value "12 / 15 Passeng"

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Range equal another range

    whoops, lets try again:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Re: Range equal another range

    You are the man... That worked perfect..............

+ 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. Sum cells in a range based between two equal cell values in another range
    By sshone1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2013, 08:12 AM
  2. COUNTIFS - Count all values in a range that equal any value in another range.
    By HeebieGeebie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2013, 09:05 AM
  3. [SOLVED] Cond. formatting a column/Range, highlight cell in column/range if equal to specific text
    By DFrank231 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2013, 03:35 PM
  4. Replies: 3
    Last Post: 12-12-2012, 12:30 PM
  5. How to make one range equal EXACTLY another range including formats
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2011, 06:52 PM

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