Need macro to print each page as a different print job.

K

Karen Schneider

I have a document with embedded codes to send to my fax server. The
problem is that I have to send each page separately. In Word I can do
this as follows:

Public Sub MAIN()
Dim TotalSec, i, F$
WordBasic.EndOfDocument
TotalSec = WordBasic.SelInfo(2) - 1
For i = 1 To TotalSec
F$ = "S" + Str(i)
WordBasic.FilePrint
Type:=0,NumCopies:=1,Range:=3,From:=F$,To:=F$
Next i
End Sub

I am not a programmer and would like to translate this to access
somehow. I know I won't have separate sections, but is there some way
to do this.

Thanks,

Karen
 
?

???

Karen Schneider said:
I have a document with embedded codes to send to my fax server. The
problem is that I have to send each page separately. In Word I can do
this as follows:

Public Sub MAIN()
Dim TotalSec, i, F$
WordBasic.EndOfDocument
TotalSec = WordBasic.SelInfo(2) - 1
For i = 1 To TotalSec
F$ = "S" + Str(i)
WordBasic.FilePrint
Type:=0,NumCopies:=1,Range:=3,From:=F$,To:=F$
Next i
End Sub

I am not a programmer and would like to translate this to access
somehow. I know I won't have separate sections, but is there some way
to do this.

Thanks,

Karen
 
?

???

Karen Schneider said:
I have a document with embedded codes to send to my fax server. The
problem is that I have to send each page separately. In Word I can do
this as follows:

Public Sub MAIN()
Dim TotalSec, i, F$
WordBasic.EndOfDocument
TotalSec = WordBasic.SelInfo(2) - 1
For i = 1 To TotalSec
F$ = "S" + Str(i)
WordBasic.FilePrint
Type:=0,NumCopies:=1,Range:=3,From:=F$,To:=F$
Next i
End Sub

I am not a programmer and would like to translate this to access
somehow. I know I won't have separate sections, but is there some way
to do this.

Thanks,

Karen
 

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