rangec1

  1. mayday1

    Set Workbook

    A kind soul helped me out with this the other day. Now I have a subsequent question: How do I set a variable to this value? Here's what I'm trying to do: Set MyFile = Workbooks(" & Range("B1") & " " & Range("C1") & ".xlsx") so it would end up being: Set MyFile = Workbooks(Donors April.xlsx)...
  2. W

    VB code alternative

    Private Sub CommandButton1_Click() If Range("A1") = 0 Then Range("A1") = 1 Exit Sub End If If Range("A1") > 0 Then Range("B1") = 1 Exit Sub End If If Range("B1") > 0 Then Range("C1") = 1 Exit Sub End If If Range("C1") > 0 Then Range("D1") = 1 Exit Sub End If End Sub I have tried the above code...
  3. F

    Loop Until

    Sub Test() Application.Wait Now + (TimeValue("00:00:03") / 2) Range("A1").Value = Range("A1") - Range("C1") End Sub What I am looking for is how I can Loop this until Cell"A1" is equal to Cell"B1"

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