+ Reply to Thread
Results 1 to 10 of 10

Change tablename on basis of cell value

  1. #1
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    390

    Question Change tablename on basis of cell value

    Hi,
    I have created different tables on different sheets from a3:m50...... 1 table on each sheet
    in cell A1 I have entered a value which is showing as tab name...
    I want A1 value as table name of that sheet.
    Is is possible?
    If yes thanx in advance

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Change tablename on basis of cell value

    Attach a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.
    Use the Go Advanced option at the bottom of the page then scroll down to Manage Attachments as the "paperclip" method does not work on this forum.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    390

    Re: Change tablename on basis of cell value

    Please find the attachment of sample
    I want value in cell A1 of every sheet as table name for every sheet
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Change tablename on basis of cell value

    Are you saying
    You want the tab name fior every sheet to appear in A1?

    You can do this using

    in A1
    =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,255)

  5. #5
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    390

    Re: Change tablename on basis of cell value

    No,
    I don't want tab name ... for that there is a macro which I have already added in the file
    I want value in Cell A1 as name for table which I have created on those sheets.
    For table1 i.e. in Date 15-02-2016 sheet the table name must be change as Date 15-02-2016 instead of Table1
    & rest of others tables as per the sheet names

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Change tablename on basis of cell value

    In tab 15-02-2016 you have named range called Table1
    You want to change the name of the table to 15-02-2016 ?
    You cant do that, Excel will return an error.
    The reasons why are displayed on the error window.

  7. #7
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    390

    Re: Change tablename on basis of cell value

    in cell A1 I have mentioned text that is
    date 15-02-2016
    I want this text as table name for table1 in same sheet

  8. #8
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Change tablename on basis of cell value

    Just edit the table name under Formulas / Name Manager

  9. #9
    Forum Contributor
    Join Date
    12-03-2014
    Location
    India
    MS-Off Ver
    2016 .......
    Posts
    390

    Re: Change tablename on basis of cell value

    ACtually I knew it ... but i want is there any macro to rename it automatically....

  10. #10
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Change tablename on basis of cell value

    I am not a macro expert, though quite why you didnt explain it simply like that in the first place I don't know.

+ 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. Cell color has to change for all updated cells on daily basis
    By ajaypal.sp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2015, 11:05 AM
  2. INSERT INTO tablename using sql [dynamic table?]
    By swill008 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2013, 10:22 AM
  3. Replies: 6
    Last Post: 11-14-2012, 10:10 AM
  4. [SOLVED] Excel 2007 - SQL srv connection failed with spaces in tablename
    By MarMo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2012, 08:55 AM
  5. Change the Back Ground Color on basis of content of cell in a range
    By ravinder_tigh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-01-2009, 11:36 PM
  6. Replies: 4
    Last Post: 01-20-2009, 03:11 PM
  7. Day Count basis change
    By sabre in forum Excel General
    Replies: 6
    Last Post: 09-18-2008, 02:32 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