rangeb1

  1. K

    VBA to extract full decimal from percentage in cell

    Cell A1 = 29.7% <code> Dim PROF As Double PROF = Range("A1").value Range("B1") = PROF </code> B1 = .30 I want B1 to = .297 :banghead::banghead::banghead::banghead:
  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. D

    A simple Do-loop for copy and pasting and making a table

    I wish to do a simple (I think!) Do-loop for the following: My simple program works as I want it to, but I think there is an easier way as I wish to repeat it 1000 times. Perhaps using some kind of loop? Do-Loop or otherwise. In short I want to: copy the contents from A1 Paste them into 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