+ Reply to Thread
Results 1 to 5 of 5

Copy dynamic range from closed workbook paste as table into specific sheet

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Copy dynamic range from closed workbook paste as table into specific sheet

    Currently I am able to successfully copy the data from a closed workbook and paste into a specified sheet in my open workbook. However, I am having to give the exact range of cells to copy which will become an issue eventually. I need to select all cells that have data in them from cells A4 and beyond in the closed workbook and paste as a table into a specified sheet in my open workbook. Again, I need to have the capability to select, copy a dynamic range beginning from cell A4. Below is my existing code.

    Please Login or Register  to view this content.
    Last edited by Huskersippi; 04-16-2019 at 05:36 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    62,198

    Re: Copy dynamic range from closed workbook paste as table into specific sheet

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  3. #3
    Registered User
    Join Date
    11-21-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Copy dynamic range from closed workbook paste as table into specific sheet

    Updated tags

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    62,198

    Re: Copy dynamic range from closed workbook paste as table into specific sheet

    Thank you.

  5. #5
    Forum Contributor
    Join Date
    03-22-2017
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Copy dynamic range from closed workbook paste as table into specific sheet

    from your code, i can see that you are using lRow and lCol as a dynamic range to create a table.

    why not you use that also for your question?

    try to indentify the "last Row" and "last Column" from other sheet that suit your question.


    Happy exploring.

+ 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. Copy dynamic range to a sheet in new workbook with specific format
    By zrs in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2019, 01:44 PM
  2. Copy specific columns from closed workbook, paste as values
    By marcosis in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-26-2018, 07:30 AM
  3. [SOLVED] vba code to copy a specific sheet from a closed workbook to the active workbook
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-01-2017, 03:09 AM
  4. [SOLVED] copy specific sheet from closed workbook to active workbook
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2017, 10:26 PM
  5. vba copy specific sheet from closed workbook to active workbook
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2017, 02:34 PM
  6. [SOLVED] Code to copy data from a closed workbook and paste in active workbook using named range.
    By paullie1912 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-28-2014, 02:38 AM
  7. Copy dynamic range from closed workbook
    By RedWing in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2011, 07:11 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