Results 1 to 8 of 8

Setting a range

Threaded View

  1. #1
    Registered User
    Join Date
    09-03-2011
    Location
    Texas, USA
    MS-Off Ver
    Excel 2007
    Posts
    22

    Setting a range

    Hi everyone,

    Here is what I am trying to do:
    Set a range to be from the first occurence of a value in col A to the last occurence of that same value in col A (offset three columns to the right).

    I have started with code by Ron DeBruin found here:
    http://msdn.microsoft.com/en-us/libr...omAllWorkbooks

    The instructions say:
    ' Change this range to fit your own needs.
    With mybook.Worksheets(1)
    Set sourceRange = .Range("A1:C1")
    End With
    How do I change this if I need to merge from 10 workbooks and the sourceRange needs to be from the FirstOccurence in col A of a user input date to the LastOccurence in col A of that same user input date (offset 3 columns to right) ??

    Thanks for the help.
    Last edited by pnmng49; 09-23-2012 at 01:44 PM.

Thread Information

Users Browsing this Thread

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

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