Link to home
Start Free TrialLog in
Avatar of Nikola Vucica
Nikola Vucica

asked on

Automatically assign date and time in Excel

Hello,
is it possible to create a spreadsheet which will automatically assign date and time in one cell on the action?
I would like to scan a barcode in cell A1 and when I scan, excel will automatically assign date and time (with minutes and seconds if can) of that scan in cell B1. So I can track when was each scan created or scanned.
Also, is it possible to create VBA scrips where that Excel spreadsheet will automatically on a predefined time in a day do file/save as on specific folder in Desktop?
Thanks in advance.
Nikola
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

You can use a worksheet_change event handler to enter a date whenever the sheet is changed.

For the saving the ontime event handler can do the job. This page can give you a lead on how to do it.
https://stackoverflow.com/questions/15149041/save-excel-file-every-30-seconds-using-system-time
ASKER CERTIFIED SOLUTION
Avatar of Roy Cox
Roy Cox
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Nikola

Did this work for you?
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: Roy Cox (https:#a42626304)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

FireRunt
Experts-Exchange Cleanup Volunteer