View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
a7n9[_4_] a7n9[_4_] is offline
external usenet poster
 
Posts: 1
Default 1004 runtime error


Try giving explicit reference of the Workbook to the Worksheets
collection

Something like: Workbooks("1").Worksheets.Count or
Thisworkbook.Worksheets.Count


--
a7n9


------------------------------------------------------------------------
a7n9's Profile: http://www.excelforum.com/member.php...o&userid=32149
View this thread: http://www.excelforum.com/showthread...hreadid=562551