H
helmekki
Hi there
Is there a code to Delete a specific line within a VBA Code or withi
another vba code within the same VBAProject ?
Code
-------------------
Sub ChkFileExists()
Dim fs
Dim StrFileName As String
Set fs = CreateObject("Scripting.FileSystemObject")
StrFileName = "C:\Gaber1314.txt"
If fs.FileExists(StrFileName) Then
MsgBox "File Already exixsts", vbInformation, "Execution interrupted"
Else
MsgBox "File Does Not exixsts", vbCritical, "Execution interrupted"
End If
'*I want to delete this line only, using another code in the same VBAProject
Application.Run "Createtxt"
End Sub
-------------------
i looked at :
Pearson Software Consulting, LLC
Programming To The Visual Basic Editor
http://www.cpearson.com/excel/vbe.htm
but could not find waht i need
Is there a code to Delete a specific line within a VBA Code or withi
another vba code within the same VBAProject ?
Code
-------------------
Sub ChkFileExists()
Dim fs
Dim StrFileName As String
Set fs = CreateObject("Scripting.FileSystemObject")
StrFileName = "C:\Gaber1314.txt"
If fs.FileExists(StrFileName) Then
MsgBox "File Already exixsts", vbInformation, "Execution interrupted"
Else
MsgBox "File Does Not exixsts", vbCritical, "Execution interrupted"
End If
'*I want to delete this line only, using another code in the same VBAProject
Application.Run "Createtxt"
End Sub
-------------------
i looked at :
Pearson Software Consulting, LLC
Programming To The Visual Basic Editor
http://www.cpearson.com/excel/vbe.htm
but could not find waht i need