ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   HELP NEEDED FOR IF Function Inside a Macro (https://www.excelbanter.com/excel-worksheet-functions/91784-help-needed-if-function-inside-macro.html)

Sandi

HELP NEEDED FOR IF Function Inside a Macro
 
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
--
Sandi Gardner

JMB

HELP NEEDED FOR IF Function Inside a Macro
 
Worksheets("Sheet1").Range("A1").Value
or
Worksheets("Sheet1").Cells(1, 1).Value
or if the cell is named
Worksheets("Sheet1").Range("MyCellName").Value


"Sandi" wrote:

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
--
Sandi Gardner



All times are GMT +1. The time now is 11:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com