excel vba macro if then

  1. T

    VBA code to copy data if the cells contain data and move to next column if the cells doesn't contain data

    I have posted the problem before on https://www.mrexcel.com/board/threads/formula-to-autofill-with-condition-and-skip-blank-cells.1194817/ It used the if function and it works perfectly The problem is that the data that taken to the master data is automatically run by VBA and it can't add the...
  2. L

    Need help with complex IF/Then

    Here is my code: If Flag = 2 Then flag2 = 1 If IsEmpty("A" & i) Then flag2 = 0 If Range("A" & i) = "STRING 1" Then flag2 = 0 If Range("A" & i) = "STRING 2" Then flag2 = 0 If Range("A" & i) = "STRING 3" Then flag2 = 0 If flag2 = 1 Then...

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