Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50070

Cell population based on meeting condition of another cell using macro.

$
0
0
I am trying to write a Macro to zero out three cells based on a condition being met in another cell. The end user will still need to have the availibility to add manual input into these cells thus my reason for using a Macro. I have tried several codings with no luck. I think it has to do with using a change command. Any help will be appreciated.

Code:

Sub Macro7()
'
' Macro7 Macro
'

'
    If Range("C6").Value = "N" Then
    Range("E6:G6").Value = "0"
    End Sub


Viewing all articles
Browse latest Browse all 50070

Trending Articles