Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
flyingdelorean.ru
598 Views, 2 Replies

Cycle ThisDoc.Document.SaveAs iLogic

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

Tags (1)
Labels (1)

@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

SaveAs.png

SaveAs2.png

  Probably because of the need to overwrite existing files