Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Create a Date macro Word 2010

13 Feb 2013   #1
mactoolsix

Win 7
 
 
Create a Date macro Word 2010

I'm having trouble creating a macro to insert the current date (static).

Here's what I'm doing:
View > Macros > Record
Name: "Date"
Store macro in: keyboard Shortcuts
Click on keyboard picture
Insert: CRTL+D & click Assign


Record: I have tried all the following:

(/@"mm,dd,yy")
"mm,dd,yy"
/@"mm,dd,yy"
(/@ "mm,dd,yy")
(DATE/@”mm/dd/yy”)


Then Stop Recording

When I hit CRTL+D I get exactly the code I put in instead of the date "02/12/13"

What code should I be inserting to get today's date?

Thanks, Mike


My System SpecsSystem Spec
.
13 Feb 2013   #2
UsernameIssues

W7 Pro SP1 64bit
 
 

Welcome to the Seven Forums.

start recording
select insert (upper left)
select date & time (upper right)
select the format that you want
click OK to exit the dialog box
stop recording

Create a Date macro Word 2010-date-macro.png


My System SpecsSystem Spec
13 Feb 2013   #3
mactoolsix

Win 7
 
 
Macro "Initials & Date"

Okay, that works.

One other question . . . Is it possible to create a macro that will insert my initials & the date using just the CRTL+D keyboard combination?

"MJR 2/13/13"

Thanks!!

Got it - played around and found out how to do it!

Thanks again!!
My System SpecsSystem Spec
.

14 Feb 2013   #4
UsernameIssues

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by mactoolsix View Post
Okay, that works.

One other question . . . Is it possible to create a macro that will insert my initials & the date using just the CRTL+D keyboard combination?

"MJR 2/13/13"

Thanks!!

Got it - played around and found out how to do it!

Thanks again!!
I'll assume by "Got it - played around and found out how to do it!" that you figured out how to put in your initials and then the date... but for the sake of others that may visit your thread - I think that the solution would be to start recording your macro, then type whatever you want to type, then insert the date.
My System SpecsSystem Spec
14 Feb 2013   #5
mactoolsix

Win 7
 
 

Correct - I started the recording, and before inserting the date, I typed my initials, space, then inserted the date.

Worked great
Thanks again
My System SpecsSystem Spec
Reply

 Create a Date macro Word 2010




Thread Tools




Similar help and support threads
Thread Forum
MS Office 2010 - Word Macro
I am a novice at this and I have searched and searched over the last week trying to figure out a fix to this. I'm trying to create a Word Macro to remove time from date: This occurs in 4 different cells. Cell in Word shows: 05/04/2016 10:00:00 I just need the date to show without the...
Microsoft Office
Word could not create the work file. Check the Temp... Word 2010
I am running Windows 7 Home Premium 64-bit and Office 2010. All of a sudden, when I tried to paste text I copied from an internet page, I got a message "Word could not create the work file. Check the temp environment variable" . It worked fine this morning and is working fine now. I had...
Microsoft Office
Date calculation using Word 2010 table/field Syntax Error
I have a Word 2010 document and I want to have specific text appear if a date is more than 42 days away from today (whatever today happens to be). I've got a three-cell table that looks like: ________________________________________________________ | DATE: | 12/25/13 | {...
Microsoft Office
MathType for word 2010 Macro settings error
Hello, I have Microsoft Office 2010 32bit installed, I installed MathType 6.7 today, and I'm getting errors on macro settings. I've looked it up on google, and enabled macro settings, copy the necessary files, but the same errors keeps popping up. When I launch Word 2010 I get this:...
Microsoft Office
How to insert a Macro into Word 2010 in Windows 7 & Assign Shortcut
I cannot find up to date, step by step instructions on creating a macro in Word 2010 on Windows 7. While in Word, View, I see Create Macros. And I can name it and paste in this info below. Sub PrintCurrentPage() Application.PrintOut Range:=wdPrintCurrentPage End Sub But how do I assign a...
Microsoft Office


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 06:13.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App