Macro to open .mpd file

S

scott_hanebutt

When I have a .mpd file open via macro an Import Wizard screen displays. I
must then manually click Finish for the macro to continue. How can I get
around this? Sendkeys does not work.

Thanks,
Scott Hanebutt
 
R

Rod Gill

Hi,

Record a macro of you opening a project from .mpd and see what gets
recorded.
 
S

scott_hanebutt

I have done so. I open it in my macro the same way. The macro does not
record the Finish being clicked.

Scott Hanebutt
 
R

Rod Gill

Not sure what's happening because I've just recorded and run a macro to open
a project from a .mpd file and there was no prompt,let alone an import
wizard. My recorded code is:

FileOpen Name:="<C:\Temp\Delete Me.mpd>\Test", ReadOnly:=False,
FormatID:="MSProject.MPD"
 
S

scott_hanebutt

It works!!!

I made a spelling mistake and did not have the <> symbols in it. It was
dumb luck it was even able to open the file at all.

Thanks,
Scott Hanebutt
 

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

Top