+ Reply to Thread
Results 1 to 3 of 3

vba range

  1. #1
    Forum Contributor
    Join Date
    12-04-2006
    Posts
    201

    vba range

    Hi,

    can anyone help me adapt this code so that i can change the range to select multiple areas, such as A1:C1 and G1:H1

    CODE:

    GetData MyPath & MyFiles(Fnum), "Sheet1", "A1:C1", destrange, False, False
    Next
    End If

    The rest of the code can be found in the link below if that helps;

    http://www.rondebruin.nl/ado.htm#folder

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Have you considered the UNION method?
    Martin

  3. #3
    Registered User
    Join Date
    01-19-2007
    Location
    Bangalore, India
    Posts
    66
    Hi,

    You can write the same code for multiple ranges as below:

    Please Login or Register  to view this content.
    Regards,
    Gajendra Gupta

+ Reply to Thread

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