Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Abbie Cohen   on Jan 14 In MS Office Category.

  
Question Answered By: Trae Thompson   on Jan 14

So refreshing to have you ask a question for a change rather than answering
them! <big g> An opportunity to give back...



I don't know why you're getting that particular error - I would expect an
error 91 - Object variable or With block  variable not set - but I notice
you're not selecting the first worksheet  initially, so I would think it's
very possible it's trying to select PAST the last worksheet.



So, does putting:

Application.ActiveWorkbook.Worksheets(1).Select

just before the For/Next loop help?

Share: 

 

This Question has 9 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Selection Method of Worksheet class failed Or get search suggestion and latest updates.


Tagged: