+ Reply to Thread
Results 1 to 2 of 2

Add line and copy formulas doesn't work with a macro

  1. #1
    Registered User
    Join Date
    04-16-2007
    Location
    Brussels, Belgium
    Posts
    9

    Add line and copy formulas doesn't work with a macro

    Hi everybody,
    I'm trying to create a macro that adds and copy formulas into a new line from an existing one (in this case, row 2)
    The steps i'm going through are :
    1. go to function "the line to copy from"
    2. Insert row
    3.Name the new inserted row (or concerned cells)
    4.Go to "The line to copy from" agains
    5. Paste
    6. Copy or Copy formulas
    7.Goto the line i've just created
    8. Delete its name using insert-name-delete

    The thing is when i do this manually 3 or 4 times, it works but the macro only works once. On the second trial, the line is created but nothing is copied frome the baseline row.

    Check the attached file,

    Do you have an idea why it doesn' work ? Another way of achieving the same result ?

    Thanks a lot in advance,

    JohN
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    To edit your code you could simply change your "COPYTO" line to:
    Please Login or Register  to view this content.
    Alternatively, you can avoid using "select, copy, and paste" altogether, as below:
    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)

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