HELP NEEDED FOR IF Function Inside a Macro

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

Guest

when using an IF then else function inside a macro, how do you reference a
cell for a specifc value in the IF function. Any help would be greatly
appreciated.

Thanks
 
Worksheets("Sheet1").Range("A1").Value
or
Worksheets("Sheet1").Cells(1, 1).Value
or if the cell is named
Worksheets("Sheet1").Range("MyCellName").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