Results 1 to 4 of 4

adding rows to a table

Threaded View

  1. #1
    Registered User
    Join Date
    03-11-2008
    Posts
    34

    adding rows to a table

    Goodmorning,

    I have a macro that adds a row to a table of names and account numbers. The code I have now is below:

    Sheets("Controls").Select
        Range("N46:Q46").Select
        Selection.Insert Shift:=xlDown
        Range("N46").Select
        ActiveCell.FormulaR1C1 = "Enter Name"
        Range("Q46").Select
        ActiveCell.FormulaR1C1 = "Enter Number"
    This works fine, but when I run this macro multiple times it only inserts the new row at row 46. Is there a way to alter this code (or do it completely differently) so that everytime I run the macro it inserts the row at the end of the table (i.e. row 47, 48, etc)?

    Thanks.
    Last edited by VBA Noob; 05-22-2008 at 08:58 AM.

Thread Information

Users Browsing this Thread

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

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