Copy Paste VBA code Required with some additional requirements Button

tyrese215

New Member
Joined
Feb 25, 2009
Messages
33
Hi there,

I need the following VBA Codes:
1)
I need a nice button to on tab named "Control" with the following VBA code to achieve the following:
Go to: "AAA" tab and clear the contents (keep formats) from A2:C1000

I want to acheive this without the screen flickering and would like it to happen in the background while on current tab

2)
I need another nice button to on tab named "Control" with the following VBA code to achieve the following:
In "BBB" tab copy entire columns A and B to the last empty row, then paste only values it in from cell A1 in sheet named "NEW"

Next
In "AAA" tab copy entire columns A and B to the last empty row, then past only values in last empty row in sheet named "NEW"

Next select column A from "NEW" tab and remove duplicates

Next select column b from "NEW" tab and remove duplicates

Next if entire cell contents in column A or B contain exact match " | | " or " | " then delete that cell and shift cells up so there is no empty cell
I want to acheive this without the screen flickering and would like it to happen in the background while on current tab

3)
I need another nice button to on tab named "Control" with the following VBA code to achieve the following:
In tab named "XXX" copy entire column C and paste only values, from D1 in sheet named "NEW"

Next select entire column D in this sheet and remove duplicates
Next if entire cell contents in column D contain exact match " | | " or " | " then delete that cell and shift cells up so there is no empty cell

=========
Please let me know step by step on where to place the code and how to create a nice button and apply the code to the button..
Thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Cross-Posting
While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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