pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
It errors in underlined line.
Code:
[/FONT]
[FONT=Courier New]Private Sub Update_Click()
Dim x As String
x = Me.PathCtxt.Value
[B][U] If Application.WorksheetFunction.Right(x, 1).Value = "/" Then[/U][/B]
Sheets("AList").Range("D1").Value = x
Call Makeinvis
Else
Sheets("AList").Range("D1").Value = x & "\"
End If
End Sub