+ Reply to Thread
Results 1 to 5 of 5

Choosing more than one table at a time

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    34

    Choosing more than one table at a time

    Hi guys,
    I have a word document with a couple of tables with content in it. I want to select say table number 4 and 5, copy it and paste it in a new document.
    The thing is I cant select and copy two tables at a time. The code that I am using is
    Please Login or Register  to view this content.
    which doesnt work. What am i doing wrong?

    sam

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Choosing more than one table at a time

    I know what you're doing wrong but I don't know the right way to do what you want.

    Tables is a collection and you can only index one element of a collection. You are providing a list of indices.

    I do not know how to copy more than one table at a time in VBA. I tried to record a macro to do it, but the Word macro recorder is very restrictive about what it will let you do in "record" mode.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    08-10-2012
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Choosing more than one table at a time

    thanks for the reply 6StringJazzer!
    I found a work around for it.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Choosing more than one table at a time

    Can you please describe your workaround? If someone does a search for the same problem and finds this thread it would be nice if they could benefit from your experience!

  5. #5
    Registered User
    Join Date
    08-10-2012
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Choosing more than one table at a time

    Luckily i my case, I had to select the last and the second last table, copy them and paste it in a new document.

    Please Login or Register  to view this content.

+ 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. Choosing Cell with Min. Value
    By blakrapter in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-01-2013, 11:17 AM
  2. Choosing values from table
    By turbosax2 in forum Excel General
    Replies: 18
    Last Post: 05-28-2011, 05:06 AM
  3. [SOLVED] Excel 2007 : Choosing The Columns in Pivot Table by Menu
    By mhraja in forum Excel General
    Replies: 5
    Last Post: 03-18-2011, 12:51 PM
  4. [SOLVED] Report choosing a Pivot table data
    By Krish in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-15-2006, 07:15 PM
  5. Choosing a Printer via VBA
    By Peter Marshall at OCC in forum Excel General
    Replies: 2
    Last Post: 06-03-2005, 02:05 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