+ Reply to Thread
Results 1 to 3 of 3

Table row headers height changing when new row added to previous table

  1. #1
    Forum Contributor
    Join Date
    11-15-2008
    Location
    Arizona
    MS-Off Ver
    Excel 2013
    Posts
    179

    Table row headers height changing when new row added to previous table

    Cross posted here: https://www.mrexcel.com/forum/excel-...ss-posted.html

    I have built a customizable excel spreadsheet for other editors to use; however, I have one glitch to solve before I can offer them the free download.

    There are five service tables one on top of the other on a sheet. The tables start out with one data row. Users press a button attached to a macro to insert one new row at the top of the table. However, inserting rows messes up the height of various rows that need to stay at a fixed height. Every time I add a new row, I am constantly reformatting the row heights of the below tables. And once I add a ton of rows even that tables row heights get messed up.

    Each table is structured like this.

    Name of table in a merged cell: row height 27 (not actually part of the named table)
    Grouping names color coded in merged cells (grouping certain headers in one category): row height 23.5 (not actually part of the table
    Header row: row height 26
    Data row(s): row height 15.5
    Calculation row: row height 16
    Row separating tables: row height 10

    Then the next table appears with the same row heights.

    Each table starts off with one row. But when I insert a row in table one, at least one of table two's row heights will change (the name of table, the grouping names, or the header row). With each new added row, more and more row heights get messed up.

    In case it matters, I have put the macro codes here. But I don't think it is the codes. It just seems to be Excel default to alter the row heights, and it is driving me nuts.

    Macro to insert row: (the sheet is protected to protect formulas, but it has to temporarily be unprotected to insert the row. Also since the header row is color coded, and I just want the data rows to be banded, I have the code use the formatting from a data row for the new row. This macro works perfectly)

    Please Login or Register  to view this content.
    When they get to the end of the year, the user presses a button to save the sheet, clear it, and then save it as a new name. This macro also calls out to run the restore table macro, putting all the tables back to only one data row. Since I may have had 20 data rows in one table, ten in another, etc., when this macro is run, it works perfectly, but again when it takes each table down to only one data row, the row heights of named row, grouping rows, and header rows in various tables get all messed up.

    Macro to restore the tables:

    Please Login or Register  to view this content.
    Last edited by dsrt16; 07-23-2018 at 12:32 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Table row headers height changing when new row added to previous table

    Rule 08: Cross-posting Without Telling Us

    Your post does not comply with Rule 8 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question. If you have fewer than 10 posts here, you will not be able to post a link, but you must still tell us where else you have asked the question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    If you have less than 10 posts, do not try to copy and paste the link. Instead, type the link out in your thread.

    No further help to be offered, please, until the OP has complied with this request.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    11-15-2008
    Location
    Arizona
    MS-Off Ver
    Excel 2013
    Posts
    179

    Re: Table row headers height changing when new row added to previous table

    Sorry I thought I had complied. This was the original post, and when I wasn't getting replies, I cross posted to Mr. Excel forum board. On their forum board, I listed this link. Then I came back and edited this post, and I thought I had included the link, but it looks like I had just edited it to add the additional information.

+ 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. Replies: 6
    Last Post: 02-23-2024, 02:11 PM
  2. Insert rows in linked table that are added to secondary table
    By Ida LaValley in forum Excel General
    Replies: 4
    Last Post: 11-16-2020, 12:00 PM
  3. [SOLVED] =Rank is messed up in table when Totals Row is added to the bottom of the table
    By tim.morley in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-31-2018, 03:48 AM
  4. Replies: 3
    Last Post: 03-28-2014, 12:04 PM
  5. Replies: 2
    Last Post: 05-03-2013, 08:47 AM
  6. [SOLVED] Changing LOOKUP table prices changes previous sales too!
    By CaneRivero in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-04-2012, 11:14 AM
  7. Changing the name of cell headers in the pivot table
    By SEMMatt in forum Excel General
    Replies: 2
    Last Post: 09-01-2011, 03:03 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