+ Reply to Thread
Results 1 to 3 of 3

Format active cells as a table via VBA

  1. #1
    Registered User
    Join Date
    06-04-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    1

    Thumbs up Format active cells as a table via VBA

    Hi,

    I'm exporting data from sql to excel. I then want to convert this data to a table ('Format as Table')

    The way the data is exported to excel, I need the VBA to be able to:

    1) Clear the existing table formatting and the data from the sheet
    2) Reformat the active cells (CurrentRegion selection) as a table.

    Any suggestions?

    Thanks in advance

    Steve

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Format active cells as a table via VBA

    perhaps
    1
    Please Login or Register  to view this content.
    2
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Format active cells as a table via VBA

    Steve

    If you import to Excel from SQL then you should get a table automatically.
    If posting code please use code tags, see here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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