d.value

  1. D

    VBA IF THEN with 2 conditions

    Hi All I have this piece of code that is giving me a Runtime error 424 I need it to check every cell in V and every green cell with value 0 it need it to remove its colour, can anyone tell me why I am getting the error. Dim b As Long Dim i as Long Dim D As Range b = 2...
  2. S

    Type Mismatch

    I am receiving a type mismatch on the line below and am not sure how to make the correction. If .Cells(E, 30 + D).value = "#DIV/0!" Then The target cell at the moment of the error has "#DIV/0!" as its contents. The line exists within a with statement: With wkbk.Sheets("Ratios")...
  3. U

    How to display a phone number in 3 TextBoxes?

    My UserFormDataEntry uses 3 TextBoxes to add the phone number to the cell as ########## My worksheet displays the formatted phone numbers as (###) ###-#### How do I extract the numbers from the worksheet cell into another UserForm with 3 Textboxes? This doesn’t work: Me.TextBox4.Value =...
  4. B

    With Or Without

    Good afternoon What are the advantages of utilizing the With Statement. Additional question How would an array be beneficial here? Thank You With - lr = Range("B" & Rows.Count).End(xlUp).Row For i = 2 To lr With Sheet2 .Cells(i, "D").Value =...
  5. D

    OptionButton value to change from True/False to Yes/No

    Hi, Please can someone help me? I would like to change the optionbutton value from true to Yes and False to No. Is this possible? This is the code I have at the moment: Sheets("Data").Cells(lrcd + 1, "D").Value = OptionButton1.Value Sheets("Data").Cells(lrcd + 1, "D").Value =...
  6. T

    Sinh function is giving me an error in VBA

    I called to excel to bring in the sinh function and i keep getting an error. code below Sub Start() End Sub Sub heattransfer() 'Variable Declaration Dim qty, qty2, L, w, T1, T2, x, y, pi, sinh, e As Double Dim nmax, j, i, r As Integer 'acquiring variable values T1 =...
  7. R

    Change event removes contents outside of target range

    Hello, Here’s snippet of a Private Sub Worksheet_Change(ByVal Target as range) If Not Intersect(Target, Range("B4:B27")) Is Nothing And Cells(Target.Row, "B") <> "Surveys" Or Cells(Target.Row, "B") <> "Reviews" And Cells(Target.Row, "D").Value > 0 Then Cells(Target.Row, "D").Value = ""...

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