+ Reply to Thread
Results 1 to 4 of 4

Multiple range statements in code

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Multiple range statements in code

    A macro is treating the below code as: Range("U5:AE54").Select. How to state the two ranges so the code treats them as two separate ranges?

    Please Login or Register  to view this content.
    Last edited by Phil Hageman; 04-03-2015 at 07:27 AM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,607

    Re: Multiple range statements in code

    Should be
    Please Login or Register  to view this content.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Multiple range statements in code

    Use Union()

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Multiple range statements in code

    Thanks Jindon and Sixthsense - it works as needed. Appreciate your time. r/Phil

+ 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. Replies: 9
    Last Post: 05-30-2014, 02:02 PM
  2. [SOLVED] Shortening Code with Multiple IF-statements
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-22-2013, 02:38 PM
  3. [SOLVED] Multiple IF Statements with < and > functions for range of values
    By clicky555 in forum Excel General
    Replies: 3
    Last Post: 08-02-2012, 07:12 PM
  4. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  5. Replies: 0
    Last Post: 11-19-2005, 11:15 AM

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