+ Reply to Thread
Results 1 to 2 of 2

Selecting from one set range to another

  1. #1
    Registered User
    Join Date
    07-07-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    30

    Selecting from one set range to another

    Hi,

    So in my code I have two set ranges and want to select from one set range to another. The code I have now does not work because I cannot select Range("POBRF:PO"). This is the code. How do I fix it?

    [CODE]
    ARow = Range("A" & Rows.Count).End(xlUp).Row
    Set POBRF = Range("A1:A" & ARow)
    BRow = Range("I" & Rows.Count).End(xlUp).Row
    Set PO = Range("I1:I" & BRow)
    Range("POBRF:PO").Select
    [CODE/]

    Thanks,
    Justin

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Selecting from one set range to another

    Yeah that wont work. You need a range as follows: ColumnLetterRow#:ColumnLetterRow# to use the Range function.

    Try the following instead:

    Please Login or Register  to view this content.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

+ 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. [SOLVED] Selecting a range of consecutive cells within a range
    By 8-bit in forum Excel General
    Replies: 2
    Last Post: 04-22-2012, 06:35 PM
  2. Error When Selecting Sheet then Selecting Range
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2012, 04:11 AM
  3. Copy/Paste Range(s) without activating/selecting Range(s)
    By hmissoumi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-03-2008, 01:29 PM
  4. Replies: 2
    Last Post: 06-19-2006, 06:10 AM
  5. selecting date range / data range autofilter
    By hansiman in forum Excel General
    Replies: 1
    Last Post: 02-23-2005, 09:06 PM

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