Find row with same date

Enigmus345

Board Regular
Joined
Sep 9, 2014
Messages
97
Hi everyone,
I have no idea where to begin with this one. I'm after some code for a "Save" button that will match the value of a datepicker to a date in column B. If the date does exist the data is written into that row otherwise it is written in the row where it belongs so to speak.
I apologise in advance on this one as I'm not sure if I've explained this clearly enough.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi

1. The datepicker is it another cell or an activeX control?
2. What is the cell range in col "B" or will it vary?
3 .Where is the data to be copied kept. (cells or activeX controls)
4. Where must the date be copied in relation to the date in column "B"

Please remember Forum members can't read your mind or see the workbook you are looking at, so a good explanation of what you require helps no end.

regards


Kev
 
Last edited:
Upvote 0
Thanks for the advice. I just realised I forgot half the details.
The datepicker is on a userform.
The data is copied to the next empty row on a worksheet as i have a "Total" row to sum up the weeks sales.
So I have two userforms which are used to fill information onto one worksheet. One userform fills in sales information onto the worksheet and the other fills in the monetary break up of the day. So the reason I need it to check the date is if the user has already completed the sales userform and write the data where it belongs in case they have not completed the sales information.
I hope i have done a slightly better job in explaining myself this time.
Thanks
 
Upvote 0

Forum statistics

Threads
1,224,395
Messages
6,178,355
Members
452,841
Latest member
GenAkaman

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