Saving .txt

T

Tony

l am having a problem getting the system to save the .txt
file in the local share.
l have tried to change the lines :
Order = System.PrivateProfileString
("C:\Settings.txt","MacroSetting", "Order")
and
System.PrivateProfileString
("C:\Settings.txt","MacroSetting", "Order") = Order

To
Order = System.PrivateProfileString
("S:\Company_Templates\Purchase_Orders.txt","MacroSetting",
"Order")
and
System.PrivateProfileString
("S:\Company_Templates\Purchase_Orders.txt","MacroSetting",
"Order") = Order

The system does not like this so now l'm lost.
Is anybody able to put me on the right track as to how to
fix this.

Regards

Tony Goldring
 
W

Word Heretic

G'day "Tony" <[email protected]>,

a document.saveas command???


Tony said:
l am having a problem getting the system to save the .txt
file in the local share.
l have tried to change the lines :
Order = System.PrivateProfileString
("C:\Settings.txt","MacroSetting", "Order")
and
System.PrivateProfileString
("C:\Settings.txt","MacroSetting", "Order") = Order

To
Order = System.PrivateProfileString
("S:\Company_Templates\Purchase_Orders.txt","MacroSetting",
"Order")
and
System.PrivateProfileString
("S:\Company_Templates\Purchase_Orders.txt","MacroSetting",
"Order") = Order

The system does not like this so now l'm lost.
Is anybody able to put me on the right track as to how to
fix this.

Regards

Tony Goldring

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email [email protected]
Products http://www.geocities.com/word_heretic/products.html

Replies offlist may require payment.
 
Top