Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Could someone helps me?
I'm trying to write data on "TestData.txt", but place "TestData.txt" in the same folder as my Excel program is placed. Private Sub SaveThisSubInforGlobal() Sheets("Response_2").Select Open "TestData.txt" For Append As #1 Write #1, Cells(i, 1).Value; Cells(i, 2).Value; Cells(i, 3).Value Close #1 End Sub I find "TestData.txt" sometimes in the same folder as my Excel program is placed, but also sometimes in "My Document." It is not consistent. Why is this so? Is there any way I can place "TestData.txt" in the same folder as my program is placed? I could do this easily with VB.6, but Excel VBA is not consistent.... Thank you |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
writing to text file | Excel Programming | |||
Writing to a text file | Excel Programming | |||
Writing to a text file | Excel Programming | |||
Writing strings to a text file ? | Excel Programming | |||
Create Folder and Text File in folder | Excel Programming |