Accessing named ranges in Excel from VBA

  • Thread starter Thread starter Basz
  • Start date Start date
B

Basz

Can anyone tell me if and how I can access a named range on a workshee
in a VBA procedure?

The value of the cell is read from a record with vlookup, I need to b
able to access it in a procedure in VBA as input in a new record.

Thankx,
Bas
 
Worksheets("Sheet1").Range("myName")

You can get the Value property if it is a single cell, or use the Cells
property if there are many.
 

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