Run VBA when any cell within range <>=""

p4nny

Board Regular
Joined
Jan 13, 2015
Messages
246
Hi

Basically, I'm trying to run code when a value is entered in range("A:A"). The code will repopulate specific cells with formulae if the user inserts a new row and enters a value into Range("A:A")

I've searched for an event for INSERT ROW but this has been unsuccessful

Much appreciated
 
This will work great, thank you. How do I convert a standard formula format to R1C1?

so for example:
Code:
=IF(B2="","",IF(Q2<>"","Complete",IF(OR(M2="",O2=""),"Missing Plan Dates",IF(AND(M2>Dashboard!$AB$8,N2=""),"Not started"
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Where would this formula go?
for instance if in C2 your formula would start =if(rc[-1]=
if in Z2 you'd have =if(rc[-25]=
 
Upvote 0
Basically, your formula works on any row.

Is there a way I can get my formula to reference the same row as the value entered in column A, just as yours does.

On any row yours will sum the value in column A and column B but my IF statement stays static and references the same cells throughout.

Hope that makes sense

Really appreciate your help here!
 
Upvote 0
try
Code:
        Target.Offset(, 4).Formula = "=IF(B2="""","""",IF(Q2<>"""",""Complete"",IF(OR(M2="""",O2=""""),""Missing Plan Dates"",IF(AND(M2>Dashboard!$AB$8,N2=""""),""Not started""))))"
 
Upvote 0
Glad to help & thanks for the feedback
Have a good weekend
 
Upvote 0

Forum statistics

Threads
1,216,074
Messages
6,128,649
Members
449,462
Latest member
Chislobog

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top