instrc.value

  1. A

    Would like Macro Adapted for Selected Cells and Ask for Character to be Used

    This macro works, but I would like adapted in two ways: 1) Instead of hard coded d1:d1000, I would like to use selected cells 2) I would like to be asked for the character to use instead of the hard coded "m". Sub RemoveAfter() For Each c In Range("d1:d1000") If InStr(c.Value, "m") > 0...
  2. P

    VBA to delete text before dash

    I am trying to trim a lot of data from the form "10am-6pm" and "11.30am-9.30pm" to "6pm" and "9.30pm". I basically just need the finish time (I already have a macro sorted to trim for the start times). However I cannot work out why my current code isn't working. So far I have: Sub...
  3. D

    VBA remove a word before Multiple Specific text

    Hi, I am trying to delete the length of a word if multiple specific text is found in a cell, but the code I have deletes the whole string rather than just the length of the word which is variable, Can someone help. Dim c As range For Each c In Selection If InStr(c.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