+ Reply to Thread
Results 1 to 5 of 5

For Each X in Range (Can I reference table directly instead of range)

  1. #1
    Registered User
    Join Date
    02-16-2018
    Location
    WI
    MS-Off Ver
    2016
    Posts
    56

    For Each X in Range (Can I reference table directly instead of range)

    Hello again,

    I am poking around with a project here and for the life of me can't remember how I can replace something like this:

    Please Login or Register  to view this content.
    ...to simply reference an entire table I have on a given worksheet instead of the fixed range.


    As it is this arbitrarily oversized range takes but a fraction of a second to do what I need it to do (and importantly, works), but its clearly a waste.
    I have tried a few different means of referencing the table here but I am definitely doing something wrong and have run the gamut of errors.


    The table is simply named Table1 and its on Sheet1(Mold List).
    Last edited by IMM Tech; 02-05-2021 at 07:55 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: For Each X in Range (Can I reference table directly instead of range)

    Maybe this?

    Please Login or Register  to view this content.
    BSB

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: For Each X in Range (Can I reference table directly instead of range)

    How about
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-16-2018
    Location
    WI
    MS-Off Ver
    2016
    Posts
    56

    Re: For Each X in Range (Can I reference table directly instead of range)

    Quote Originally Posted by BadlySpelledBuoy View Post
    Maybe this?

    Please Login or Register  to view this content.
    BSB
    I used this, worked perfectly. Thanks kindly, it is much faster now.

    Quote Originally Posted by Fluff13 View Post
    How about
    Please Login or Register  to view this content.
    I surmise this also would have worked.

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,097

    Re: For Each X in Range (Can I reference table directly instead of range)

    Glad to help & thanks for the feedback.

+ 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. Replies: 2
    Last Post: 11-21-2020, 04:29 AM
  2. Replies: 1
    Last Post: 12-05-2019, 03:47 AM
  3. Replies: 0
    Last Post: 04-06-2017, 02:56 AM
  4. Copying Excel table range to an existing PPT slide, pasting as TABLE, not as PICTURE
    By gurnblanston27 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-22-2016, 04:44 PM
  5. Replies: 1
    Last Post: 11-25-2014, 08:35 PM
  6. Replies: 2
    Last Post: 08-27-2014, 03:13 PM
  7. Replies: 5
    Last Post: 08-30-2012, 06:50 AM

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