How do I access worksheet cell data (i.e. cell sheet1!a4) from vi.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do you directly access cells in the worksheet, such as sheet1!a4 from a
visual basic prodedure or function?
 
X = Worksheets("Sheet1").Range("A4").Value

or

X = Worksheets("Sheet1").Cells(4, 1).Value
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top