Office & Productivity Software forum

General discussion

WORD 2003 Macro to insert new date on each page

by dmizesr / April 9, 2007 9:52 PM PDT

I need a macro that will run through a 365 page document and write a progressive date on each page. So, page one would be "January 1" page two would be "January 2" and so on clear through to "December 31."

I'm a newb to macro writing so please be specific in reply. Any and all help is GREATLY appreciated.

Also, as a bonus, if there would be some special trick involved in setting the font and size for this insertion that information would be helpful as well.

Thanks!

Discussion is locked
You are posting a reply to: WORD 2003 Macro to insert new date on each page
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: WORD 2003 Macro to insert new date on each page
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Things to choose from.
by Kees Bakker / April 9, 2007 10:01 PM PDT

1. Hire a programmer.
2. Learn programming yourself.
3. Do it manually. Assuming it takes 30 seconds for each page, it's 180 minutes or 3 hours work. That's probably faster than #2, and cheaper than #1.
4. Hire or find someone to do it manually.

Do what best suits your needs. I'm afraid no-one here will volunteer the coding.


Kees

Collapse -
Wow, thanks
by dmizesr / April 10, 2007 12:34 AM PDT
In reply to: Things to choose from.

1. You must be a programmer. Only a programmer would be such a jackhole.
2. I am in the process of learning. Of course, in learning I'm afraid I might become a huge jackhole, like you, so I think I'll just burn my books instead.
3. Wow. A usable piece of information. Thanks.
4. I'd rather save my money, which obviously is a choice you've made as well, although your should have spent yours on that anti-jackhole potion the mage tried to sell you on WOW.

Have a nice day.

Collapse -
Think what you did here.
by R. Proffitt Forum moderator / April 10, 2007 12:45 AM PDT
In reply to: Wow, thanks

You may be alienating those that can do this work. While I have my reason for not handing out the code you may find programmers to walk away when treated like this.

This is a free forum so advice is all you might get. Less if you write replies like that.

Bob

Collapse -
If I'd seen a better way ...
by Kees Bakker / April 10, 2007 12:53 AM PDT
In reply to: Wow, thanks

I would have mentioned it. Sorry if my answer didn't suit you.

And good luck with your programming studies. If you've got any concrete question (on how a certain construction in VBA works, or what the parameters of a certain method are, or how to do something you can't find out by viewing a recording) don't hesitate to ask here. But your question as it was, was way to broad, in my opinion.

Most of the answers are in your books, if you've got the right books, so better don't burn them. But some might not be, and then a forum like this can be useful.

In closing: there's a difference between getting something done as fast (or cheap) as possible, and using a problem as a means to learn something, even it would take 10 times as much time as just doing it in another way.
My assumption was that your question was in the first category. But it seems to be in the second one. Sorry for the misunderstanding.

Hope this helps.


Kees

Collapse -
A starter for you.
by R. Proffitt Forum moderator / April 9, 2007 10:03 PM PDT
http://www.gmayor.com/insert_a_date_other_than_today.htm

This article handily dismissed that this was going to be easy but armed with the code noted in this article all that's left is for you to add a page (with your code), move the cursor and repeat. I'm declining to write this for you in its entirety since you must own and maintain the product.

-> What could be easier is to use the language you do write in a lot to produce such a document.

Bob
Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

CNET FORUMS TOP DISCUSSION

Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?