range.find

  1. M

    Using Range.Find() to find the first cell to NOT have a given value

    Title. Is it possible just using the Range.Find() or any other method to find the first cell whose value isn't a given argument? I know I can manually iterate through a range and check the values but I'd really like a cleaner solution to this.
  2. M

    Range.Find Result Changing Irrationally After Inserting Columns and Naming Cells

    Dim rngY As Range Set rngY = ActiveSheet.Range("A1:MA1").Find("Main Image", lookat:=xlPart) Dim rngcol2 As Integer rngcol2 = rngY.Column Columns(rngcol2).Insert rngY.Offset(0, -1).Value = "Images" rngY.Offset(1, -1).Value = "images" Dim lr As Long lr =...
  3. T

    VBA Find cell address with text to use as range variable

    In a workbook with multiple sheets, I want to find the address of a cell containing the string "MIS", which will always be in a sheet in which cell A1 begins "P " (with a space after the letter P). I then want to save this address to a range variable and pass it to another sub which will set the...
  4. C

    Unable to get the FindNext property

    Hi All! I am in dire need of all your expert advise. I have already searched through google and previous forums here with similar problems but none of the answers in those forums seemed to indicate why my code is not working... I have even compared to the docs.microsoft.com example and it is...
  5. B

    VBA: Range.Find returning multiple results

    Hi, I'm working on a project where I need to lookup a name from a list, and then navigate to a worksheet with the same name. I've got this working fine, however when there's multiple matches to my search, Range.Find just finds the first instance and keeps going. So for example, I could have...
  6. J

    VBA Find Method Deselects Charts

    I'm using the following code in conjunction with an embedded chart to find the row where a specified value is located and use that value in a custom tooltip. The problem is that when this runs it deselects the chart and goes back to the last selected cell, and you have to click on the chart...
  7. R

    range.find wont find single "," comma occurance

    Hi community my sub wont find single occurence of "," only when i type additional comma it started to work. So only cells with 2 and more occurances of the comma character are processed correctly. Sub proc() Dim inp As Range Dim outp As Range Cells(1, 7).Activate Set inp =...
  8. svendiamond

    VBA Range.Find in multiple ranges... easier method?

    I am trying to find a string (myLookup) in range "balRangeA" If I don't find it there, I want to look in "balRangeB" If I don't find it there, I want to look in "incRangeA" Is there an easier / shorter way to manage this rather than this code I currently have: Dim foundIt As Range...
  9. N

    Range.Find run a second time on the same range finds second occurance intead of first

    I'm doing some fairly intensive searching for specific data on a sheet. So far it's involved filtering the sheet on several criteria, copying the visible rows to a TempWorksheet and then performing Range.Find looking for one of two possible values in these results. I've come across something...
  10. M

    Range.Find Multiple Criteria

    Hi, Is there a way to use the Range.Find to look for multiple criteria instead of just one value, and not withing a consecutive range, but multiple columns across rows? I'm assuming it can be accomplished by using the "AND" but I don't know where to place it in the function. In my case I...
  11. T

    Get Array of Hidden Rows and Columns indices

    Is there a way to get an array of all the indices of the hidden rows and columns within a worksheet? I would like to do this without any looping, perhaps using Range.Find() if its possible or whatever is most efficient. Ideally I would like to have two functions (FindHiddenRows and...
  12. E

    Range.Find on hidden fields

    I am hoping that you can help. I have set up a range of cells and want to be able to carry out a Range.Find on these cells to identify cells with a particular value. However I want to be able to find the cell even if it is hidden. At the moment, my code works perfectly IF the cell is visible...

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