How to 'cumulate' Userform entries in a Sheet

Luisao82

New Member
Joined
May 4, 2010
Messages
8
I will try to expose my question as simple as possible:

I have a startup userform with a field named "Date", in which the users are required to enter the current date every time the file is opened.
What I want is Excel to 'cumulate' the date entries in that field ("Date"), in a sheet named "DateField_History", starting from cell B3 and down.


I'll clarify.
In the "Date" field (Userform):

- On 5th of May I wrote: "05/05/2010" (once)
- On 7th of May I wrote: "07/05/2010" (once)
- Yesterday I wrote: "08/05/2010" (twice, because I needed to use the file twice)


So all these date entries (all of them) must appear as a list, in sheet "DateField_History", starting in cell B3.
It's something like 'number of visits' to the file or 'date entry history'.



N.B.: every time the list is completely deleted, new entries should always start from cell B3 (row 3 becomes the first empty row of that particular range, if we fully delete the list).



Here's a picture


Uploaded with ImageShack.us
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
Welcome to the Board!

Why force your users to do something that you can do automatically:

<font face=Calibri><SPAN style="color:#00007F">Private</SPAN> <SPAN style="color:#00007F">Sub</SPAN> Workbook_Open()<br>    Sheets("DateField_History").Cells(Rows.Count, "B").End(xlUp).Offset(1).Value = <SPAN style="color:#00007F">Date</SPAN><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>

Hope that helps,
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,151,957
Messages
5,767,306
Members
425,403
Latest member
MellieD

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