Forum Discussion
Rose G
Mar 31, 2018Copper Contributor
How to create date stamp by using command box on multiple selected cells ?
Hi. I’m a beginner to Macro & VBA . I want to create a date stamp by using ActiveX Command box, which should work in such a way that when I selected multiple cells, the date should be appear when I c...
- Mar 31, 2018
Try linking this simple macro to your command button:
Sub Test() Selection.Value = Format(Now(), "MM/DD/YYYY hh:mm") End Sub
Matt Mickle
Mar 31, 2018Bronze Contributor
Try linking this simple macro to your command button:
Sub Test() Selection.Value = Format(Now(), "MM/DD/YYYY hh:mm") End Sub
- Rose GMar 31, 2018Copper Contributor
Thanks a lot; it is working as i expected. I appreciate your help
- Matt MickleMar 31, 2018Bronze Contributor
You're welcome! Always happy to help.