Repeat Entry

one_more_cave_dweller

Board Regular
Joined
Sep 27, 2004
Messages
118
I have a macro that copies information from a sheet each day and pastes it horizontally into a summary sheet for the month. (a1=1st, a2=2nd etc.).
The macro is triggered by a control button the user clicks after they have entered the information. How can I stop them from entering the same day twice?

Thanks
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Assume your data is to be entered between A3:A25

Click on A4 making it active, then highlight
A4:A25;
Go to the menu, Data, Validation,
Select Custom form top box,
in formula box enter the below formula:

=IF(COUNTIF($A$3:$A4,$A4)=1,TRUE,FALSE)

On Tab 3 enter a message if desired.
OK Out
 
Upvote 0
Thanks Jim that works except one thing, the sheet that I am copying to is colored. Is there a way to just copy the value and not the color of the cell?

Thanks :pray:
 
Upvote 0
Can you post the code attached to the control button?
It probably is going to need to be modified so as to paste-special
values.
Jim
:unsure:
 
Upvote 0

Forum statistics

Threads
1,202,987
Messages
6,052,936
Members
444,616
Latest member
novit19089

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