Assign the content of a cell from excel to a variabele

  • Thread starter Thread starter Wesselius
  • Start date Start date
W

Wesselius

How do i add the content of a cell to a variabele within visual basic
 
var1 = Worksheets("Sheet1").Cells(1, 1).Value
or:
var1 = Worksheets(1).Cells(1, 1).Valu
 

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