+ Reply to Thread
Results 1 to 5 of 5

Add or Delete Adjacent Columns When Changing Row Count

  1. #1
    Forum Contributor
    Join Date
    10-05-2017
    Location
    Altamonte Springs, FL
    MS-Off Ver
    Office 365
    Posts
    146

    Add or Delete Adjacent Columns When Changing Row Count

    When I add a row to a table, I'd like it to move along with it the cells adjacent (one on either side). As an example, here is what I was attempting when adding a row. I keep getting an error that the object does not support the property. However, the object - ListRows - does work when simply using listrows.add.

    Deleting is a separate sub and x = inputted number of rows. Suggestions for change are much appreciated. Thanks

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    10-05-2017
    Location
    Altamonte Springs, FL
    MS-Off Ver
    Office 365
    Posts
    146

    Re: Add or Delete Adjacent Columns When Changing Row Count

    Tried it this way and it still didn't work.

    Please Login or Register  to view this content.
    Is resize not allowed with listrows object?

  3. #3
    Forum Contributor
    Join Date
    10-05-2017
    Location
    Altamonte Springs, FL
    MS-Off Ver
    Office 365
    Posts
    146

    Re: Add or Delete Adjacent Columns When Changing Row Count

    For now, as a workaround, I've just manually added a column to both sides of the table and whited out the fill and font. The only dilemma is the visible line for total row. It's not perfect but ok for now.

  4. #4
    Forum Contributor
    Join Date
    10-05-2017
    Location
    Altamonte Springs, FL
    MS-Off Ver
    Office 365
    Posts
    146

    Re: Add or Delete Adjacent Columns When Changing Row Count

    This is still one of the last remaining upgrades I'm trying to accomplish in my workbook. I'm still stuck on this one.

    Any help would be much appreciated.

  5. #5
    Forum Contributor
    Join Date
    10-05-2017
    Location
    Altamonte Springs, FL
    MS-Off Ver
    Office 365
    Posts
    146

    Re: Add or Delete Adjacent Columns When Changing Row Count

    Mark over at Excel Off the Grid helped me out and this is solved. Code should be:

    Please Login or Register  to view this content.

+ 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] Display count of consecutive occurrances of 1's or 0's in adjacent columns
    By SiKinsella in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-14-2019, 05:48 PM
  2. [SOLVED] Count pairs of values in adjacent columns (either way around)
    By Alfie101 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-23-2016, 03:50 AM
  3. [SOLVED] Sum Count of Single Criteria in Multiple Non-Adjacent columns
    By Domenic in forum Excel Formulas & Functions
    Replies: 36
    Last Post: 09-06-2005, 03:05 PM
  4. [SOLVED] Sum Count of Single Criteria in Multiple Non-Adjacent columns
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  5. Sum Count of Single Criteria in Multiple Non-Adjacent columns
    By Domenic in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 09-06-2005, 07:05 AM
  6. [SOLVED] Sum Count of Single Criteria in Multiple Non-Adjacent columns
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. [SOLVED] Sum Count of Single Criteria in Multiple Non-Adjacent columns
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-14-2005, 05:06 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