Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All, I am getting subscript out of range error on this line:
---------------Set wbk = Workbooks("C:\Documents\WorkBook1") here is my code Sub Submit_Click() Dim wbk As Workbook Dim ws As Worksheet Dim FName As String Set wbk = Workbooks("C:\Documents\WorkBook1") With Worksheets("Sheet1") Range("A1").Value = Me.Name.Value End With FName = "C:\Documents\" _ & "File_of" & "-" & Me.Name.Value & ".xls" Application.DisplayAlerts = False With wbk ..SaveAs Filename:=FName ..Close End With end sub Thanks in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Subscript Out of Range Error | Excel Programming | |||
Runtime Error - Subscript out of range despite On Error statement | Excel Programming | |||
Subscript out of range error - save copy error | Excel Programming | |||
Subscript out of range error - save copy error | Excel Programming | |||
Type Mismatch error & subscript out of range error | Excel Programming |