+ Reply to Thread
Results 1 to 2 of 2

VBA amendment to change range selection

  1. #1
    Registered User
    Join Date
    03-01-2019
    Location
    Nottingham, England
    MS-Off Ver
    2016/365
    Posts
    83

    VBA amendment to change range selection

    Hi Guys,

    I have managed to piece together this code to retrieve data from a closed workbook and it's working pretty well so far
    Please Login or Register  to view this content.
    What I would like to do however and am struggling with is to change the range selection to only select the cells with data effectively to mimic this crudely recorded code
    Please Login or Register  to view this content.
    And then to paste this selected data into the destination sheet2 (A4).

    To clarify, the data will always be in columns A-U but the number of rows will change.

    Any help would be very much appreciated!

    Thanks in advanced.

    Spoonman

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Re: VBA amendment to change range selection

    You can use simple formulas to retrieve data from closed workbooks, anything more complex would require the workbook to be opened.

+ 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] Need amendment within the code for setting deleting range of cell
    By Eduards in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-28-2019, 12:39 PM
  2. [SOLVED] VBA macro range amendment
    By bizzarofen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-31-2017, 08:00 AM
  3. [SOLVED] Worksheet selection change in a range vba modification
    By rajeshn_in in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-30-2017, 01:40 AM
  4. Amendment to VBA - Change Report Filter for 2 Pivot Tables
    By Maroota in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-02-2016, 01:19 PM
  5. [SOLVED] Time range cell selection change
    By MikeWaller in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-23-2013, 02:22 PM
  6. Change Range Selection to find last row
    By fbivens in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-28-2012, 03:44 PM
  7. Change a range to a named selection
    By The Dropper in forum Excel General
    Replies: 2
    Last Post: 04-09-2010, 05:26 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