+ Reply to Thread
Results 1 to 3 of 3

Need help for a macro to copy, paste and clear data

  1. #1
    Forum Contributor
    Join Date
    02-02-2013
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2010
    Posts
    169

    Need help for a macro to copy, paste and clear data

    Sorry for this long explaination:

    I have learned so much on this forum and have received so much help and appreciate every bit of it.

    I'm here again looking for the same help that I have received so many time before.

    This is a sample sheet that I work with each month for billing. I have a "clear Button" in column "A" down around cell 8&9 that clears the empty rows that are not needed. So the rows that remain each time a sheet is created could be more or less depending on the amount of data that will be on it.

    Each month when I start a billing I do it on a percentage amount, which is entered in column "D" and it will show the amount completed in Column "F" that is going to be billed.

    When the next month comes for the next billing I open the same file and "save as" with a new name.

    Need a Macro to do this:
    I copy the numbers that is in Column "H" and paste the value only in column "E" and than I clear the percentages in column "D" back to 0% before I can start a new billing. Column "I" keeps a running total of how much as been billed until in reaches 100%.

    The macro would also need to do the same down below where Change Orders start.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Need help for a macro to copy, paste and clear data

    This post has been deleted
    Last edited by kev_; 11-25-2016 at 05:31 AM.

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Need help for a macro to copy, paste and clear data

    This works but is based on following assumptions
    1. looks at all rows 11 onwards
    2. determines end of data by looking at columnA and finding last cell with anything in it
    3. if there is a number > 0 in columnA it does what you want

    Please Login or Register  to view this content.
    NOTE
    This macro will do bad things if you start putting anything in columnA for any of the other lines!!!
    Last edited by kev_; 11-25-2016 at 05:33 AM.

+ 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. [SOLVED] Copy/paste data using checkbox-clear when unchckd & multiple selections paste in next cell
    By Staceymcw in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-02-2015, 12:09 AM
  2. [SOLVED] Help with a macro to copy data to other sheet and clear cells
    By bazofio in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2014, 07:59 PM
  3. VBA, Vlookup, Copy, Paste and Clear
    By pp84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-19-2013, 02:22 PM
  4. Macro to copy Dyanmic lists then copy sheet and clear the original data
    By twiggywales in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2012, 01:06 PM
  5. [SOLVED] Copy/Paste & Clear Contents Macro on multiple spreadsheet
    By greggatz in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-01-2012, 10:16 AM
  6. Macro to average imported data, cut, paste, clear values etc
    By mryals in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2011, 02:59 PM
  7. copy and paste to next clear row
    By lrm75uk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2010, 05:44 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