Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Autoname "save as" files
#1
hi
i have to print a bunch of pdf files using a special software. its over 500 pdf! so i decided to get int ths macro stuff.
i wrote this code. However, i need to change the name of every new file like this:

the first pdf file must be named "1", the second one "2" and so on.

Thanks in advance for your help:

Here it's the code:

for(i 0 lazos) out i;
5 win("Save PDF File As" "#32770")
'XXXXX.pdfY
if(i = lazos) break

Lazos is total number of pdf files. I that "XXXXX" changes just as "i" does !!


thanks so much
#2
try this

Code:
Copy      Help
for(i 0 lazos) out i;
,5 win("Save PDF File As" "#32770")
,outp "%i.pdf" i
,'Y
,;'XXXXX.pdfY
,if(i = lazos) break
An old blog on QM coding and automation.

The Macro Hook
#3
Awsome

thanks!


Forum Jump:


Users browsing this thread: 1 Guest(s)