How do I batch print 'snp' files?

G

Guest

I am trying to print all of the snp files in a folder with either a macro or
in VB/VBA. Unfortunately I am using Office 2000.

Can anyone help, I'm really lost as how to go about this.
 
K

krissco

I am trying to print all of the snp files in a folder with either a macro or
in VB/VBA. Unfortunately I am using Office 2000.

Can anyone help, I'm really lost as how to go about this.

This may be worth a shot:

Obtain your file names by repeatedly calling the dir() function

Something like:

strFileName = Dir("*.snp")
while strfilename <> ""

'Do Stuff

strFileName = dir()
wend


Within the loop, use the Shell() function to open the snapshot viewer
for the file.

You may have success by changing the default action of .snp files
through windows (Tools -> Folder options ->File types -> Advanced in
winXP).


On my system, the shell command looks like this:
shell "c:\program files\snapshot viewer\snapview.exe " & strFileName &
" -p"

The annoying part is that "-p" prompts for user intervention (which
printer, what properties, etc.) and is not good for batching. Try
changing that default action. There COULD be another switch I don't
know about too.

-Kris
 

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