Macro To Paste "Values Only" into next blank row of ANY active sheet

christechgeek

New Member
Joined
Sep 1, 2012
Messages
7
I work at an auto dealership and I have a worksheet that lists open (not funded) contracts and this list will be updated daily throughout the month. I have a droplist with 2 options that can be selected once a contract is either "Booked" or "Funded". Periodically someone will sort the "Funded" contracts and copy these to a sheet named the month they were sold in. There will be sheets for each month January through December.
There could probably be an automated solution to this that once a contract is marked as "Funded" that it automatically moves to the appropriate month's sheet and deletes from the primary (Current Month) sheet. (If someone could help me figure that out, it would great!)

But what I'm actually trying to do here is just to have a macro that once someone copies the funded contracts and they go to the appropriate month's tab, that I have a button tied to a macro that will paste values only into the next available empty row.
I have played with a few different ways of doing this and haven't found my perfect solution. Can someone help?

Thanks in advance.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I finally came up with this that seems to work:

PHP:
Sub PasteValuesOnly()
'
' PasteValuesOnly Macro
'

    ActiveSheet.Select
    Range("A" & Rows.Count).End(xlUp).Offset(1).Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False
    Application.CutCopyMode = False
End Sub

But if anyone has any suggestions to automate this so that it automatically cuts and pastes information when "Funded" is selected it would be greatly appreciated!
 
Upvote 0

Forum statistics

Threads
1,214,636
Messages
6,120,664
Members
448,976
Latest member
sweeberry

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top