+ Reply to Thread
Results 1 to 10 of 10

What is wrong with this Macro???!!!!?!?!?!><

  1. #1
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    What is wrong with this Macro???!!!!?!?!?!><

    Please Login or Register  to view this content.
    The idea is to take data from multiple tables and place them into the sheet called "AllData". It keeps telling me Range of Object failed at the "range(vMoveAllData).Copy" part.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: What is wrong with this Macro???!!!!?!?!?!><

    what "range" is vMoveAllData? A range is usually something like a cell or sheet reference.....I think.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: What is wrong with this Macro???!!!!?!?!?!><

    vMoveAllData is a list (array) of tables, which I thought constituted a range or multiple ranges
    Last edited by AstToTheRegionalMGR; 04-17-2015 at 02:17 PM.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: What is wrong with this Macro???!!!!?!?!?!><

    How did you create the tables or named ranges?
    Ben Van Johnson

  5. #5
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: What is wrong with this Macro???!!!!?!?!?!><

    I selected the columns and rows and clicked format as table, then renamed the tables to the names I have listed in the array

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: What is wrong with this Macro???!!!!?!?!?!><

    Maybe ...

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: What is wrong with this Macro???!!!!?!?!?!><

    Hi,

    See if the attached example with code does what you want. I couldn't tell if you had Named Range Tables or Tables of data. See if either/both work with the attached example code.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  8. #8
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: What is wrong with this Macro???!!!!?!?!?!><

    I've used this in the past. It suddenly is just not allowing me to use the range("").copy for some reason. It seems if I am using range, it is not going to work. Also, I am using table ranges, not named ranges

  9. #9
    Forum Contributor
    Join Date
    11-12-2014
    Location
    Boston, MA
    MS-Off Ver
    Office 2010
    Posts
    172

    Re: What is wrong with this Macro???!!!!?!?!?!><

    UPDATE: I am a total moron. I had done some work on this recently and changed the name of "ArmenisTable" as part of a test and never changed it back. Thus, VBA did not know what I was referencing. What a waste of an hour... Marking as solved and adding to all your reputations

  10. #10
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: What is wrong with this Macro???!!!!?!?!?!><

    Thank you for the rep, glad you were able to get it figured out.

+ 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] What is wrong with this macro? I think it looks fine :(
    By KATIEexcel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-12-2012, 07:48 AM
  2. HELP: What is wrong with this macro??
    By henwood in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2012, 08:20 AM
  3. What's wrong with this macro?
    By belly0fdesire in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-26-2006, 07:00 PM
  4. What have I done wrong with this Macro???
    By Shandy720 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-12-2005, 12:05 PM
  5. macro results wrong
    By Joseph Tibiita in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-30-2005, 12:32 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