M
Macrofinder
Can I open and print multiple views in Project using a macro?
Macrofinder said:Can I open and print multiple views in Project using a macro?
Macrofinder,Macrofinder said:Hi John. Thank you for the response. I understand how to apply a view and
print, however I am having difficulty applying multiple views and printing
them w/ out having to select "OK or Cancel," on the print console. I would
like to apply about 30 views and print them w/ out the computer stopping.
Here's how my code looks:
ViewApply Name:="SD ALAP"
ColumnBestFit Column:=2
ColumnBestFit Column:=3
ColumnBestFit Column:=4
ColumnBestFit Column:=5
ColumnBestFit Column:=6
ColumnBestFit Column:=7
FilePrint Copies:=1
ViewApply Name:="SD Deadline"
ColumnBestFit Column:=2
ColumnBestFit Column:=3
ColumnBestFit Column:=4
ColumnBestFit Column:=5
ColumnBestFit Column:=6
ColumnBestFit Column:=7
FilePrint Copies:=1
John said:Macrofinder,
Ah, it seems I remember a similar question a few months ago. Normally
the FilePrint Method should execute without any further user input.
However for some reason the FilePrint Method really would like you to
specify the FromPage argument even though it is supposedly optional (as
are all the arguments). So be a nice guy and tell the nice computer
which page to start from. It will be happy, you will be happy and
everyone will win.
Hope this helps.
John
Project MVP
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.