Results 1 to 6 of 6

using VBA to add new rows under an existing table

Threaded View

  1. #1
    Forum Contributor
    Join Date
    09-05-2019
    Location
    Vancouver, Canada
    MS-Off Ver
    Office 365
    Posts
    112

    using VBA to add new rows under an existing table

    Hello

    I have been working on some VBA code in which I'm adding new rows under an existing Table. In the 1st scenario, I start off with a Table and a blank row, and I add new rows to my table (see "scenario1" worksheet. This is fine as expected.

    In the 2nd scenario, I start off with a Table and several rows that have already been filled (see see "scenario2" worksheet) . When I run my VBA code (clicking on the "Create New Issues" button), I get a border line after the prefilled rows (see "scenario2_actualresult" worksheet).

    However, I would like to create a result that looks like "scenario2_idealresult" worksheet.

    Given that there is a border that is created on the entire row, I could use VBA code to delete the row, but that seems like a brute force method. Is there something else inherent in my code that naturally creates a border?

    Thanks
    Attached Files Attached Files
    Last edited by dcwan; 08-19-2020 at 08:32 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 02-25-2019, 05:28 PM
  2. Change the number of rows in existing table to match cell value
    By quite in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-19-2017, 03:36 PM
  3. Replies: 1
    Last Post: 10-28-2016, 12:31 PM
  4. Replies: 8
    Last Post: 04-15-2014, 04:35 AM
  5. [SOLVED] Trying to add more rows to a table based on existing data
    By davidhale87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2013, 04:03 PM
  6. Excel VB: Add Rows with formulas in an existing Table by changing a cell value
    By Charliebravo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2012, 08:59 AM
  7. Appending rows to existing worksheet/table
    By notaprogrammer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2008, 08:28 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