INPUTING a text string and a function in one cell?

R

R3Jar

I would like to create a mcro that will execute with a hot key combo that will
put the text string
" an. mach." and the function Now() to indicate that I received an answering
machine at the date and time of the function Now(). Does anybody know what I
have to do to accomplish this? Thanks a billion for any advice.
 
R

Ron de Bruin

Try this

Sub test()
ActiveCell.Value = "an. mach." & Format(Now, "dd-mm-yy h-mm-ss")
End Sub

Assign a shortcut to this macro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top