+ Reply to Thread
Results 1 to 5 of 5

Fix a header change

  1. #1
    Registered User
    Join Date
    02-05-2020
    Location
    Victoria, BC Canada
    MS-Off Ver
    365 Business
    Posts
    14

    Fix a header change

    Hi,
    Ready to kill this piece of software...

    So I created a connection between three tables, then I appended them and created the pivot table I was looking for. All good.
    Then I realized I'd typo'd one of the headers in one of the tables. I fixed it and it broke everything.
    So I killed the old connection, killed the old append and then created a new connection and a new append and rebuilt the pivot table from scratch, however the error is still there. I get [Expression.Error] the column (typo'd name) of the table wasn't found.
    Is there a way to fix this? Is there a better way to make a header change on a table so it doesn't kill the pivot table?

    Thanks for any advice!

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Fix a header change

    Go into query editor. In each of the query, go into Advanced Editor and find typo'd name. And replace that with new one.

    If you want to make column names dynamic. You can build it by creating translation table based on column position (though this will require more advanced set up).

    Alternately, instead of changing column name of the table, you could have used caption inside pivot table to replace displayed name only.
    "Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    02-05-2020
    Location
    Victoria, BC Canada
    MS-Off Ver
    365 Business
    Posts
    14

    Re: Fix a header change

    Thanks for getting back to me!
    I can't even FIND the advanced editor!!!
    I killed the rest of the connections as well as the one with the typo and started from scratch. I was able to get the thing to work after rebuilding everything, although I lost some utility along the way that I can't figure out how to get back (won't refresh pivot table data unless I do a save first).
    The problem with the caption solution is that the error isn't on the pivot table side, I need the table that I've got people inputting data into to read correctly. The column in question isn't even part of the final pivot table!
    Thanks again.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Fix a header change

    To get to Advanced Editor.

    First start query editor by going to Data tab -> Queries & Connections. It will launch pane to the right of your Excel instance, and double clicking on one of the queries shown.

    Once in query editor, on the Ribbon tool go to "View" tab and click on Advanced Editor icon.

    It will show entire "M" query code for individual query. You can then copy paste the query into text editor and use find & replace.

  5. #5
    Registered User
    Join Date
    02-05-2020
    Location
    Victoria, BC Canada
    MS-Off Ver
    365 Business
    Posts
    14

    Re: Fix a header change

    got it! Thank you!

+ 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. VBA to change header name
    By Anandpersad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-15-2015, 07:10 PM
  2. Replies: 0
    Last Post: 08-29-2013, 10:07 PM
  3. [SOLVED] Macro to change header
    By CityInspector in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-25-2012, 08:11 AM
  4. Header changes can't change them.
    By welshery in forum Excel General
    Replies: 3
    Last Post: 11-02-2011, 09:06 AM
  5. Macro to Change Header in Row 1
    By MSmithson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2011, 09:59 PM
  6. Change Header from a,b,c, to 1,2,3
    By RiceEatingZR1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2007, 11:24 AM
  7. Change Header data
    By MrMountain in forum Excel General
    Replies: 1
    Last Post: 01-21-2006, 04:34 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