+ Reply to Thread
Results 1 to 3 of 3

Assigning (Setting) a table to a variable

  1. #1
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    615

    Assigning (Setting) a table to a variable

    What am I doing wrong here?
    tblMainInput is an Excel table via Insert:Table

    I get a Runtime error 13
    Type Mismatch

    Please Login or Register  to view this content.
    I suspect what I've set up is a range object, but then, how would I change it to be a ListObject ummmm, object?

    Thank-you, as always!


    Edit: Oh my, I have published my ignorance to the world... Use ListObjects instead of Range, right?
    Last edited by brucemc777; 10-27-2015 at 05:02 PM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Assigning (Setting) a table to a variable

    Please Login or Register  to view this content.
    If you want to load in to array-dog. You need to change the table name from SalesData16 to your table name

    OR

    Please Login or Register  to view this content.
    Last edited by AB33; 10-27-2015 at 05:21 PM.

  3. #3
    Forum Contributor
    Join Date
    03-05-2007
    Location
    Falmouth, VA now, Palm Bay, FL for 2 yrs, was Colorado Springs, CO for ten years; Cedark Park, TX; Zeeland, MI; Wilmette, IL; Princeton Junction, NJ; NY, NY
    MS-Off Ver
    365
    Posts
    615

    Re: Assigning (Setting) a table to a variable

    Thanks - I'm looking forward to experimenting with those to learn how I can use them now and in the future! I keep learning twice as much as I set out to by examining how people code things-

    Edit: Wow. What you taught me with that instant array creation is powerful! (I just had the opportunity to try it) Much appreciated.
    Last edited by brucemc777; 10-27-2015 at 06:48 PM.

+ 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] Assigning A Cell Address to A Variable, Using A Variable - Error '1003'
    By ch_abs in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-28-2014, 01:36 PM
  2. [SOLVED] Setting a variable range with a variable sheet name. Hmm?
    By starcraftbud in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-11-2013, 11:46 AM
  3. Setting a data table to a variable
    By owndemise in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-28-2012, 07:01 PM
  4. Excel 2007 : assigning into variable
    By lilahh in forum Excel General
    Replies: 7
    Last Post: 08-14-2011, 04:27 AM
  5. Assigning Value to Variable, and Show Value of that Variable
    By torofish in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-19-2010, 05:42 AM
  6. Assigning a variable and pasting variable to last unused column.
    By Ageia in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-20-2008, 05:06 PM
  7. [SOLVED] Assigning a min to a variable
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-03-2006, 01:10 PM
  8. [SOLVED] Assigning a min to a variable
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2006, 11:30 AM

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