ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Run-time error '1004': Select method of Sheets class failed (https://www.excelbanter.com/excel-programming/383119-re-run-time-error-1004-select-method-sheets-class-failed.html)

Sol[_4_]

Run-time error '1004': Select method of Sheets class failed
 
On 13 Feb, 14:44, "Tom Ogilvy" wrote:
Are the names correct?

Are any of the sheets hidden?

--
Regards,
Tom Ogilvy

"Sol" wrote in message

ps.com...



Hi all


I get the error - Run-time error '1004': Select method of Sheets class
failed
When I go to debug I get 1st and 2nd line highlighted in yellow


Sheets(Array(" Summary", "Transaction Register", "Investrep",
"Cashflow", _
"Charts")).Select
Sheets(" Summary").Activate
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Sheets("PRINTING").Select
Range("A1").Select
End Sub


Any ideas on how to remedy this please


Cheers


Sol- Hide quoted text -


- Show quoted text -


Yes it turns out that one sheet was hidden, I revealed it and all
printed ok...many thanks



All times are GMT +1. The time now is 08:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com