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: Brendan Smith   on Nov 29

Have u opened the work book before storing the value in any variable?
Try following code  for ur problem, and then see wht happen?

Dim a as string
Dim filepath as string
filepath = "C:\"
a="Fixed.xls"
workbooks.open(filepath & a)
x= workbooks(a).Worksheets(1).Cells(i,2).value

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: