+ Reply to Thread
Results 1 to 4 of 4

Insert a new row and copy all formulas down

  1. #1
    Forum Contributor
    Join Date
    06-12-2007
    Posts
    144

    Insert a new row and copy all formulas down

    I made this macro to add a new row down with the same formulas when the person goes to a new row.

    It works fine, but now I need to have the same thing but not on the last row of the sheet, there is stuff below.
    So i need to find a specific marker in column a, say "XXX" and INSERT a new row there and copy the formulas and formatting.

    The problem I have is that it seems to insert 2 rows, or it inserts a row above the bottom row!


    This is the original code that works well:

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    07-18-2007
    Posts
    16
    Try this and see whether it works! You need to replace the value "456" with the marker you need to find.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-12-2007
    Posts
    144
    No that doesnt work im afraid.

    It says "Procedure declaration doesn not match description of event or procedure having the same name"

    I seem to have fixed this by copying the
    (ByVal Target As Range)
    from the previous sub declaration

    but then it seems to just be looking for the marker and adding a row, not waiting till u click on that row.
    It also seems to be inserting multiple rows.

  4. #4
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Try

    Please Login or Register  to view this content.
    rylo

+ 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