Excel Macro to enter same text in comment box file's property box of 132 different files
On May 16, 12:24 am, Jan Karel Pieterse
wrote:
Hi Kat,
The tab's name is SMR-Main and the VBA code thinks it must be a minus
sign instead of a hypen because when I type it the worksheet name it
changes it to SMR -Main
What do I put in front of the hypen or the text to make it go?
I suspect this is what you need:
ActiveWorkbook.Worksheets("SMR-Main").PrintOut
Regards,
Jan Karel Pieterse
Excel MVPhttp://www.jkp-ads.com
Member of:
Professional Office Developer Associationwww.proofficedev.com
Can you help me one more time?
Can you help me one more time. I have been trying to get the current
date to print in the comments box instead of having to update the
macro each time. (The files are always forwarded on the current date)
I looked up the code for this, but I don't know how to add it in to
the procedure. This is what I did
ActiveWorkbook.BuiltinDocumentProperties("Comments ").Value =
"FORWARDED TO PM"
Dim MyDate
MyDate = Date
And, of course, all I get is the FORWARDED TO PM. I know it probably
somehow has to be inserted between the quotes, but I just can't figure
out how. Thanks for your help again. (Maybe I will get the job
promotion and won't have to do this anymore!)
|