That works great! :)
But the thing is i have this userform which will save files to the tem
folder. the function will only work in the module right?
I have this:
'Save S1band'
Private Sub CommandButton1_Click()
Sheets("Sheet3").Activate
Dim fpath As String
Dim x As Long
Dim r As Range, c As Range
Set r = Sheet3.Range("A43:C" & Range("A72").End(xlUp).Row)
fpath = "*D:\Documents and Settings\Administrator\Loca
Settings\Temp\*port1.xml"
Open fpath For Output As #1
For Each c In r
If c.Column < 3 Then
If c = "" Then
Print #1, Chr(9);
Else
Print #1, c;
End If
Else
Print #1, c
End If
Next
Close #1
Unload Me
HPS1config.Show
End Sub
is there anyway for me to relate the strPath into the above userform
--
rach8
-----------------------------------------------------------------------
rach85's Profile:
http://www.excelforum.com/member.php...fo&userid=1655
View this thread:
http://www.excelforum.com/showthread.php?threadid=51051