Hi Brian_Del,
Thanks for reaching out. My name is Ali. I'm an Independent Advisor and a Microsoft user like you. I'll be happy to help you out today.
Please use the shortcut Alt + F11 to open the VBA window and put the below code and then assign the button to this code.
Please refer to the link below that how you can link your existing code with a button in excel.
https://trumpexcel.com/assign-macro-to-button-i...
Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
Sub textdatetime()
Dim ts As Date
With Selection
.Value = "DVC" & WorksheetFunction.Text(Now, "yyyymmddhhmmss")
End With
End Sub
At the end do save this file as .xlsm extension to work with this code in future.
I hope it worked out well for you. If not, please reply back to this forum to let me know or mark this as resolved along with your feedback. :) I will be glad to follow up and help you.
Thanks,
Ali