+ Reply to Thread
Results 1 to 2 of 2

Macro code for selecting all the data in a table?

  1. #1
    Forum Contributor
    Join Date
    12-08-2015
    Location
    London, England
    MS-Off Ver
    2021
    Posts
    145

    Macro code for selecting all the data in a table?

    Hi,

    What's the code you need to use in a macro to make it select all the data in a table?

    My macro is basically formatting data into a template but is used for several different data dumps. The idea being that the user will dump the data from the system into a sheet, run the macro and the data they need will be put into another tab.

    So far this is working well, but I'm trying to work out how to select all the data in the completed tab in one go.

    I need it to be able to select all the data in the table, regardless of how big or small the table is, as each time the report is run there will be different amounts of lines.

    The first time the report is run it might make a table of 15 lines, the second time it might make 300 lines

    is there a way of encoding this into a macro please?

    Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,111

    Re: Macro code for selecting all the data in a table?

    Hello WW,

    Without seeing a sample of your workbook, we can't be totally sure of which way to go about this but something like:-

    Please Login or Register  to view this content.
    should work.

    "UsedRange" refers to your entire data set.

    Cheerio,
    vcoolio.

+ 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. Excel 2010: Macro Code to re-align data table
    By lsk2141 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-24-2018, 09:13 PM
  2. Code or macro to put a table of different data into a graph
    By Gavalar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2016, 07:18 AM
  3. Macro for selecting a single item while filtering the data in Pivot Table
    By Syed964 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2013, 01:28 PM
  4. [SOLVED] code or macro to be triggered when selecting specific data
    By chiidzzz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-11-2012, 10:45 AM
  5. Faster code for selecting dates from conditions, in pivot table
    By Cedicon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2011, 07:15 PM
  6. macro code to delete table data
    By Traymond in forum Access Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2011, 07:41 PM
  7. Macro - How to amend recorded code to avoid selecting
    By slipit1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2008, 06:07 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