Jump to content
The mkiv Supra Owners Club

Excel Question


far

Recommended Posts

Just write a little macro and attach a short cut key to it.

 

something like this will add a time and initial stamp to any cell when you press ctrl t.

 

Sub Macro2()

 

' Keyboard Shortcut: Ctrl+t

'

Dim timestamp As String

 

MyInitials = "JSJ"

timestamp = Now()

 

 

ActiveCell.FormulaR1C1 = ActiveCell.FormulaR1C1 & " " & timestamp & " - " & MyInitials

 

End Sub

Link to comment
Share on other sites

thanks guys, erm I think I wasnt clear in my initial description - I dont want to update the entire date of the spreadsheet, I have a 'notes' column and when I go into the cells under this column I would like to add a date stamp as to when the note was added.

 

Jas, I think your solution would work - I will have a go at writing the macro, managed to find a tut on google

Link to comment
Share on other sites

easiest way is to do the follwing.

 

tools>Macro>record new macro.

 

Name it appropriately, and stick in a letter of your choice in the shortcut key box.

click ok.

 

type some random stuff in the spreadsheet "iwg iugdeug" will do..

then go to

tools>Macro>stop recording.

then

tools>Macro>macros...

select the macro you just recorded and press edit.

code screen will open and you will see some code relating to your random typing (eg "iwg iugdeug" )

 

paste in the code in my first reply, save and close the VB screen.

 

when you ctrl + whatever key you specified now in your workbook it should date stamp it.

 

any probs give me a shout.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. You might also be interested in our Guidelines, Privacy Policy and Terms of Use.