VBA code Copy, Paste, then Delete from 3rd

Scoti

New Member
Joined
Nov 8, 2020
Messages
11
Office Version
  1. 2010
Platform
  1. Windows
I am having trouble getting a code to work where on the click of a command button it will copy a list of values, paste them in a range on one sheet and then remove them from another sheet. The pasted data should be in sheet "Completed" and the date I want removed should be from sheet "Received". Attached is the code that successfully copies and pastes but does not delete. Can anyone help me out with this? I get an error message of "Invalid or unqualified reference".
 

Attachments

  • 20201108_183122.jpg
    20201108_183122.jpg
    206.5 KB · Views: 10

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,402
Office Version
  1. 365
Platform
  1. Windows
You are using .Find with no WITH statement before it. That is the unqualified bit it speaks about.
 

Scoti

New Member
Joined
Nov 8, 2020
Messages
11
Office Version
  1. 2010
Platform
  1. Windows
I can't seem to figure out the easiest way to handle this. Basically it is showing that an item moved through a process from pending to finished. The 1st worksheet lists the items, the second worksheet shows the items as received, and the 3rd shows the items as being completed. So I need to remove the completed items from the second worksheet to prevent it from becoming increasingly larger with items that are no longer being processed. Any ideas?
 

Watch MrExcel Video

Forum statistics

Threads
1,130,179
Messages
5,640,632
Members
417,159
Latest member
Mayozero

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
Top