Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Cycle ThisDoc.Document.SaveAs iLogic

flyingdelorean.ru
Contributor

Cycle ThisDoc.Document.SaveAs iLogic

flyingdelorean.ru
Contributor
Contributor

Why does this ilogic code not work?

Dim FileName As String


For i As Integer = 1 To 10
	
	FileName = ThisDoc.Path & "\" & "VertY" + i.ToString + ".ipt"


ThisDoc.Document.SaveAs(FileName, True)

Next

 I want to save the same file 10 times with different names

0 Likes
Reply
Accepted solutions (1)
597 Views
2 Replies
Replies (2)

dutt.thakar
Collaborator
Collaborator
Accepted solution

@flyingdelorean.ru 

 

It is working, what is it that is not working for you? Do you get any error messages? See below GIF, which shows it is working.

 

MultiSaveAs.gif

 

 

If this answer has solved your problem please ACCEPT SOLUTION and hit like if you found it helpful..!


Regards,
Dutt Thakar
LinkedIn

flyingdelorean.ru
Contributor
Contributor

SaveAs.png

SaveAs2.png

  Probably because of the need to overwrite existing files

0 Likes