'
'Sub AutoNew()
Order = System.PrivateProfileString("C:\Settings.Txt", _
"MacroSettings", "Order")
If Order = "" Then
Order = 1
Else
Order = Order + 1
End If
System.PrivateProfileString("C:\Settings.txt", "MacroSettings", _
"Order") = Order
ActiveDocument.Bookmarks("Order").Range.InsertBefore Format(Order, "00#")
ActiveDocument.SaveAs FileName:="path" & Format(Order, "00#")
End Sub
at a glance it all looks ok to me - what err do u get and where?
Steve Hudson
Word Heretic Sydney Australia
Tricky stuff with Word or words
Email: WordHeretic at tpg.com.au
Barb was spinning this yarn: