tally the number of work

reylan

Board Regular
Joined
Jul 21, 2010
Messages
74
Is this possible to record in sheet 1 the number of times they open the workbook let us say cell A1 when the workbook is open it will tally as 1 and then next time they open it will add 1 and I put a password too "diesel" in sheet 1 so that i cannot cheat the number of times I visited this workbook Control.
 
Hi reylan,

Where did you place the code? This code should be pasted in the ThisWorkbook module.

And for what it is worth, I would go with a cleaner code such as Smitty. His use of variables and setting them once so they can easily be used later.
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
In the VBE, look in the Project Explorer and expand your project-->Expand Microsoft Excel Objects. ThisWorkbook should be at the bottom of the list.
 
Upvote 0

Forum statistics

Threads
1,224,516
Messages
6,179,231
Members
452,898
Latest member
Capolavoro009

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