You could run a Workbook_Open procedure (VBA code that runs automatically runs upon opening that does the following):
- Updates a value in some hidden or remote somewhere, incrementing it by 1, i.e.
Code:
Range("Z1000") = Range("Z1000") + 1
- Immediately saves the file (so that the update is recorded/saved).
The only caveat is that if they do not enable VBA, the code won't run.
If you're referring to a UserForm, then you could put something like Joe4 has shown in either the Initialise event, or in a command button event, depending on what you need.
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.