Forum Discussion

Rose G's avatar
Rose G
Copper Contributor
Mar 31, 2018
Solved

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...
  • Matt Mickle's avatar
    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
    

Resources