Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I have the following code which should copy values in a sheet and then paste them into a new sheet but it comes up with the error 'Subscript not in range' Does anyone have any ideas why this is happening? Thanks Sub Import_Crystal() Dim fname As String ChDrive "S" ChDir "S:\Kingston\FA\Overseas Payments\Overseas Payments Public\Ed" fname = Application.GetOpenFilename() Workbooks.Open (fname) Windows(fname).Activate Sheets("TEST11").Select Range("A1:AQ100").Select Selection.Copy Windows("Remittance Procedure").Activate Sheets("Crystal_Table").Select ActiveSheet.Paste End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Subscript out of range | Excel Discussion (Misc queries) | |||
Subscript out of Range | Excel Discussion (Misc queries) | |||
9: Subscript out of range | Excel Discussion (Misc queries) | |||
SubScript Out Of Range. | Excel Programming | |||
Subscript Out of Range | Excel Programming |