+ Reply to Thread
Results 1 to 4 of 4

Macro - enter data in next clear row after every run

  1. #1
    Registered User
    Join Date
    06-27-2014
    Location
    dublin
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macro - enter data in next clear row after every run

    Hello, I have a question that is similar to ones asked before but succinctly different.

    i have a macro that
    - copies rows from one sheet into another sheet based on a set of criteria
    - the very very very first time the macro is run, the first row of data should be put into row 7 (formatting reasons)
    - however, every other time it's run it should paste into the next clear row.

    but, what is happening is that, each time its run, it puts the data into row 7 => overwriting data.

    i've used the offset and counter function but perhaps I need to put it in the header of the code to get it working?
    i don't know how to do this.

    my code pasted below:

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    06-27-2014
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    15

    Re: Macro - enter data in next clear row after every run

    Hii Maryam,

    please check "Use relative reference" on while recording macro

    secondly .. Finish your macro by clicking on the cell below your current row in which macro pasted the data. (use offset function)

    It works when I run the similar kind of macro.

    Regards,
    Rupesh

  3. #3
    Registered User
    Join Date
    06-27-2014
    Location
    dublin
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro - enter data in next clear row after every run

    Hello Rupesh,

    thank you for your comment.
    i'm sorry, but i don't follow

    could you direct me to the line of code that needs changing?

    thanking you & regards,
    maryam.

  4. #4
    Registered User
    Join Date
    06-27-2014
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    15

    Re: Macro - enter data in next clear row after every run

    Is it possible for you to share the original file in which macro has been recorded and stored

    rupesh

  5. #5
    Registered User
    Join Date
    06-27-2014
    Location
    dublin
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro - enter data in next clear row after every run

    hi rupesh,
    thank you.
    please find attached.
    regards,
    Attachment 328762

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to clear row data then shift remaining data up to empty rows.
    By clarmech in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2014, 04:35 PM
  2. Replies: 1
    Last Post: 06-21-2013, 04:05 AM
  3. Macro to clear data after filter
    By cmb80 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2012, 10:27 AM
  4. Clear all data from sheet 1 macro
    By cmb80 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-09-2012, 08:07 AM
  5. [SOLVED] Clear data not format with Macro
    By Jogier505 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2009, 04:57 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