+ Reply to Thread
Results 1 to 2 of 2

How to Set a Table Style as a Variable

  1. #1
    Registered User
    Join Date
    08-16-2007
    Posts
    50

    How to Set a Table Style as a Variable

    Hello,
    I am trying to set a table style as a variable without any luck. Below is one example I have been trying (along with several other tests). It would be greatly appreciated if someone would show me how to set a table style as a variable.
    Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: How to Set a Table Style as a Variable

    Hi,

    You put extra spaces for the TableStyle name :
    ........TableStyles("Table Style Light 4")

    while it should be :
    ........TableStyles("TableStyleLight4")

    To list all available TableStyle, you can use this macro :
    Please Login or Register  to view this content.
    An example how to use a variable as a TableStyle and apply it to a table (Table = ListObject) named Table1 in activesheet :
    Please Login or Register  to view this content.
    You may want to check the information from this link :
    https://msdn.microsoft.com/en-us/lib...ice.14%29.aspx



    Regards
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

+ 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. How to save custom table formatting as a Table Style
    By telework in forum Excel General
    Replies: 0
    Last Post: 09-26-2014, 11:22 PM
  2. Custome table style
    By sherry_1991 in forum Excel General
    Replies: 0
    Last Post: 01-10-2013, 12:32 PM
  3. Pivot Table Style design
    By whoiswct in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-26-2012, 11:47 PM
  4. Export of a custom table style
    By TomaszTarczynski in forum Excel General
    Replies: 2
    Last Post: 07-01-2011, 02:47 AM
  5. cannot save a new default pivot table style
    By jrussell in forum Excel General
    Replies: 1
    Last Post: 06-17-2009, 11:23 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