ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can I assume everyone has Scripting Run Time (scrrun.dll) on C:\WI (https://www.excelbanter.com/excel-discussion-misc-queries/76401-can-i-assume-everyone-has-scripting-run-time-scrrun-dll-c-%5Cwi.html)

Tetsuya Oguma

Can I assume everyone has Scripting Run Time (scrrun.dll) on C:\WI
 
Hi all,

Subject says it all; Can I assume everyone has Scripting Run Time
(scrrun.dll) on C:\WINNT\sytem32\?

Apparenlty it comes with Internet Explorer 6.0.

What other alternatives do I haev to create a text file and insert some text
in lines?

Thanks for your time.



Bob Phillips

Can I assume everyone has Scripting Run Time (scrrun.dll) on C:\WI
 
Sub CreateTextFile()
Dim FileNumber
FileNumber = FreeFile ' Get unused file number.
Open "C:\Test.txt" For Output As #FileNumber
Write #FileNumber, "This is a first line of data"
Print #FileNumber, "This is a second line of data"
Close #FileNumber

End Sub


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Tetsuya Oguma" wrote in message
...
Hi all,

Subject says it all; Can I assume everyone has Scripting Run Time
(scrrun.dll) on C:\WINNT\sytem32\?

Apparenlty it comes with Internet Explorer 6.0.

What other alternatives do I haev to create a text file and insert some

text
in lines?

Thanks for your time.






All times are GMT +1. The time now is 09:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com