Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Charlie Miller   on Nov 29 In MS Office Category.

  
Question Answered By: Rochelle Elliott   on Nov 29

Have you got the name "Fixed.xls" absolutely correct? If the sheet
does not exist you get the Run-time error  '9'; Subscript out of range
message.
Does Worksheet(1) exist? (I suppose it must) but to debug try
temporarily referring to it with its name instead of its index eg.:
x = Workbooks("Sheet1").Worksheets(1).Cells(i, 2).Value

The code  in your message doesn't activate Fixed.xls by the way, nor
does it need to, to work.

Share: 

 

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

 
Didn't find what you were looking for? Find more on Run time error Or get search suggestion and latest updates.


Tagged: