#1
|
|||
|
|||
Add Month Name to Title via macro
Good Morning,
I am working on a project that automatically generates reports in PowerPoint. Essentially I have an excel spread sheet that queries a database, pulls in the data, opens a PowerPoint template, builds tables in Powerpoint based upon the data in the sheets, and then saves out the Powerpoint presentation as a new file. Each slide in the template has some various header information. One item of information that it must contain is the Month and Year the data was generated. Is there some way possible to, in the header block, have the name of previous month apear automatically based on the system date? |
#2
|
|||
|
|||
Quote:
use control panel for this situation . No you cannot have previous slides |
#3
|
|||
|
|||
Is the header on the slide master?
Assuming you have a textbox on the Master with some text this macro should insert the Month and Year before the text. Sub AddDate() With ActivePresentation.Designs(1).SlideMaster.Shapes(" Header").TextFrame.TextRange .Text = Mid(.Text, InStrRev(.Text, ":") + 1) .InsertBefore (MonthName(Month(Now)) & "_") & Year(Now) & ":" End With End Sub |
#4
|
|||
|
|||
Thanks. I will give that a try as soon as I can and I will let you know how it came out.
|
#5
|
|||
|
|||
Re: Thank you
Your Welcome if anything does not work out please contact your computer service number.
|
#6
|
|||
|
|||
Quote:
YES MICROSOFT should have a year and date and time . |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to set month+1 and horizontal line | nightkn8 | Word | 12 | 03-25-2013 02:06 PM |
How to show just day and month | ketanco | Project | 2 | 06-14-2012 03:25 PM |
Re: a month-old post with no replies. | BudVitoff | Outlook | 0 | 10-10-2011 10:22 PM |
Day and Month to Uppercase | Andy2011 | Word VBA | 1 | 07-22-2011 04:34 PM |
Formulate month in Excel 2010 | meninio | Excel | 4 | 01-25-2011 12:13 PM |