Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Select method of range class failed
I've got a function that is supposed to select a range of cells in a
spreadsheet and run the print preview that selection. But I keep getting error 1004 with the above message, although I only seem to get this message when there is already a selection in the applicable sheet. Any ideas how to avoid this? Set wks = ActiveWorkbook.Sheets("ErrorReport") wks.Visible = True 'pause briefly to make sure the worksheet is visible myTime = Now While Now - myTime < (1 / 24 / 60 / 60): DoEvents: Wend wks.Range("A:E").Select Selection.PrintOut Copies:=1, Preview:=True, Collate:=True wks.Visible = False -- Email address is not valid. Please reply to newsgroup only. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Select Method of Range class failed | Excel Programming | |||
What did I do? (Select Method of Range Class Failed ) | Excel Programming | |||
Select method of Range class failed - but why??? | Excel Programming | |||
select method of range class failed | Excel Programming | |||
select method of range class failed | Excel Programming |