Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Subscript is out of Range
Hi,
Below is an extract from a macro, why do I get 'Subscript is out of range', many thanks Sub yy() Dim curWkbk As Workbook Set curWkbk = Workbooks("wip " & Format(Date, "dd-mm-yy") & ".xls") End Sub |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Subscript is out of Range
Hi
sounds like this worksheet is not opened. Maybe the space after 'wip' is not in the workbook name? -- Regards Frank Kabel Frankfurt, Germany teresa wrote: Hi, Below is an extract from a macro, why do I get 'Subscript is out of range', many thanks Sub yy() Dim curWkbk As Workbook Set curWkbk = Workbooks("wip " & Format(Date, "dd-mm-yy") & ".xls") End Sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Subscript is out of Range
In you previous post, you said you wanted to compare the current workbook
against the most recent workbook. Dave is making an assumption that the current workbook is named after the current date: ? "wip " & Format(Date, "dd-mm-yy") & ".xls" wip 19-12-04.xls If you don't have a workbook open with that name, then you would get an error. -- Regards, Tom Ogilvy "teresa" wrote in message ... Hi, Below is an extract from a macro, why do I get 'Subscript is out of range', many thanks Sub yy() Dim curWkbk As Workbook Set curWkbk = Workbooks("wip " & Format(Date, "dd-mm-yy") & ".xls") End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Subscript out of Range | Excel Discussion (Misc queries) | |||
Subscript out of Range Q | Excel Programming | |||
Subscript out of range | Excel Programming | |||
subscript out of range | Excel Programming | |||
SubScript Out Of Range. | Excel Programming |