+ Reply to Thread
Results 1 to 9 of 9

VBA: Setting Default Table Styles from Selected Table

  1. #1
    Forum Contributor
    Join Date
    02-26-2023
    Location
    Lousianna
    MS-Off Ver
    Microsoft 365
    Posts
    932

    VBA: Setting Default Table Styles from Selected Table

    Hello,

    Is it possible to save a table style with cell alignments and numbering styles? I would like the first table on the sheet to be saved and applied to the other tables please. The font sizes are different for the header row, body rows, and bottom row.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,224

    Re: Table Styles

    Go to Format as Table ... on the Home ribbon and select New Table Style. Set your requirements and save, remembering to TICK the box so that it becomes the default.

    Hope this helps.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    02-26-2023
    Location
    Lousianna
    MS-Off Ver
    Microsoft 365
    Posts
    932

    Re: Table Styles

    I don't see cell alignments when in the styles for the tables. Am I missing something?

  4. #4
    Forum Contributor
    Join Date
    02-26-2023
    Location
    Lousianna
    MS-Off Ver
    Microsoft 365
    Posts
    932

    Re: Table Styles

    Can the first table be saved "as is" which has all of the formatting I like?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,224

    Re: Table Styles

    No - unfortunately not. Would be good if it could! There may be a way with VBA - would you like me to move the thread for you?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,224

    Re: Table Styles

    I don't see cell alignments when in the styles for the tables. Am I missing something?
    Click on the Format button to access font and alignment settings.

  7. #7
    Forum Contributor
    Join Date
    02-26-2023
    Location
    Lousianna
    MS-Off Ver
    Microsoft 365
    Posts
    932

    Re: Table Styles

    I would have to apply those to each table as I see it. Maybe there are ways with VBA? Can you please see if someone can do it with VBA? Thank you very much.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,224

    Re: VBA: Setting Default Table Styles from Selected Table

    I've moved the thread and updated the title. This is why explicit thread titles are so important - your "Table Styles" really wasn't indicative of what you were asking - it was too generic.

  9. #9
    Forum Contributor
    Join Date
    02-26-2023
    Location
    Lousianna
    MS-Off Ver
    Microsoft 365
    Posts
    932

    Re: VBA: Setting Default Table Styles from Selected Table

    Great thank you for the advice also.

+ 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] Is It Possible To Apply Multiple Table Styles Onto A Single Table?
    By zanshin777 in forum Excel General
    Replies: 4
    Last Post: 12-11-2021, 05:11 AM
  2. [SOLVED] Excel 2013 Pivot Table - Setting a default value label (MIN, MAX etc)
    By Vanth_2013 in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-11-2015, 12:59 PM
  3. [SOLVED] Certain table won't display styles
    By janusk in forum Access Tables & Databases
    Replies: 2
    Last Post: 06-29-2014, 10:42 AM
  4. Replies: 0
    Last Post: 09-29-2011, 05:54 AM
  5. Excel 2007 : Copying Table styles
    By vikas.bhandari in forum Excel General
    Replies: 1
    Last Post: 06-26-2009, 05:54 AM
  6. Table Styles?
    By mbqc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2008, 09:45 PM
  7. [SOLVED] pivot table format report - setting default
    By stevep in forum Excel General
    Replies: 0
    Last Post: 12-14-2005, 11:30 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