+ Reply to Thread
Results 1 to 4 of 4

adding rows to a table

  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:

    Please Login or Register  to view this content.
    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.

  2. #2
    Registered User
    Join Date
    01-07-2008
    Location
    Northampton, UK
    MS-Off Ver
    version 2212, office 365 enterprise
    Posts
    74
    There may be a more sophisticated way but try this:

    Please Login or Register  to view this content.
    Last edited by chrismann85; 05-22-2008 at 09:05 AM.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    sportsranker,

    please read forum rules below. Your code has being wrapped for you this time.

    You could try

    Please Login or Register  to view this content.
    VAB Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    03-11-2008
    Posts
    34
    Thank you all for the help.

+ Reply to Thread

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