+ Reply to Thread
Results 1 to 3 of 3

Rename a varying table name

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    54

    Rename a varying table name

    Hello again,

    Initially I am importing a sheet from a downloaded document and the name is "owssvr(#)" where the # changes based on the version. I am able to rename this sheet with no issue. The problem is the table name may change as well and the name of the table is not consistent.

    Question: What code can I use to rename a table to just "Table" every time when running my code regardless of what the name was originally?

    This is the only table in the workbook.

    Thanks!
    Drew

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Rename a varying table name

    Something like this should work:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    02-18-2014
    Location
    Tampa
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Rename a varying table name

    Thanks for the help! All is well now.

    D

+ 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] Varying validation drop-downs based on varying cell values
    By navarreman1 in forum Excel General
    Replies: 2
    Last Post: 08-08-2013, 08:13 AM
  2. Pivot Table with Varying Size of Ranges
    By Timothy100 in forum Excel General
    Replies: 1
    Last Post: 02-05-2011, 03:26 PM
  3. Create a data table by varying inputs
    By umtemplt in forum Excel General
    Replies: 2
    Last Post: 11-18-2010, 12:31 AM
  4. Need to rename sheets and automate pivot table and summary table
    By sameerk0286 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2010, 03:08 AM
  5. Creating a pivot table on a varying range with a macro
    By Collin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2010, 07:12 PM
  6. Grouping in Pivot Table with varying count of fields
    By Scotch_And_Dry in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2009, 08:11 PM
  7. copy data of varying size to end of table
    By LiamF in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-23-2008, 12:36 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