VBA macro to grap the current title

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

After I print my 'slides' , I need to know where to find them again on the
hard disk .

I need a little macro which graps the window title and places it into a
textbox on the slide .

For example , the current title is " MS Powerpoint - [ show_title.ppt ] " .
How can I get a hold of this text ?
The txtbox and string handling I know how to do already .

Thanks

Chris James
 
After I print my 'slides' , I need to know where to find them again on the
hard disk .

I need a little macro which graps the window title and places it into a
textbox on the slide .

For example , the current title is " MS Powerpoint - [ show_title.ppt ] " .
How can I get a hold of this text ?
The txtbox and string handling I know how to do already .

The "MS PowerPoint - [ xxx ]" part will be consistent. Only the "xxx" changes
with each presentation.

You can get the name of the presentation in VB with:

Msgbox ActivePresentation.Name

ActivePresentation.FullName gives you the full path to the presentation file
ActivePresentation.Path gives you just the path, no filename
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top