kirkhilles
asked on
Powerpoint VBA: Set default CommonDialog path to DESKTOP
I have a CommonDialog box in a PowerPoint application and was wondering if its possible to set the InitialDir to the DESKTOP instead of just the C Drive. Is this possible?
Thanks!
Code:
Slide3172.CommonDialog1.Ca ncelError = True
Slide3172.CommonDialog1.Fi lter = "PowerPoint Presentations (*.ppt)|*.ppt"
Slide3172.CommonDialog1.In itDir = "c:\"
Slide3172.CommonDialog1.Sh owSave
DoEvents
If Slide3172.CommonDialog1.Fi leName <> "" Then
ActivePresentation.SaveAs FileName:=Slide3172.Common Dialog1.Fi leName
DoEvents
End If
Thanks!
Code:
Slide3172.CommonDialog1.Ca
Slide3172.CommonDialog1.Fi
Slide3172.CommonDialog1.In
Slide3172.CommonDialog1.Sh
DoEvents
If Slide3172.CommonDialog1.Fi
ActivePresentation.SaveAs FileName:=Slide3172.Common
DoEvents
End If
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.