+ Reply to Thread
Results 1 to 2 of 2

insert or format a table

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    Netanya, IL
    MS-Off Ver
    2010
    Posts
    1

    insert or format a table

    Hi,
    I'm trying to make a macro that will either format a selected tabe or insert a new one if none were selected.
    this is what i came up with...
    Please Login or Register  to view this content.
    Now when i run it (either with a selected table or without) i get an error saying Method or data member not found
    debuger is pointing to the .Style on 8th row.
    Where did i go wrong? :(
    thanks.

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: insert or format a table

    Your first reference to Selection.Tables is missing the index #. That said, try:
    Please Login or Register  to view this content.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ 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. Insert rows in linked table that are added to secondary table
    By Ida LaValley in forum Excel General
    Replies: 4
    Last Post: 11-16-2020, 12:00 PM
  2. Replies: 0
    Last Post: 03-12-2013, 01:41 PM
  3. Replies: 3
    Last Post: 10-25-2012, 04:30 PM
  4. Replies: 1
    Last Post: 09-13-2012, 07:30 PM
  5. Keep format of data table after insert a new row on a protected sheet
    By RickyC in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2010, 10:58 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