I know this question has been addressed in several places here, but none so far are solving my problem, and I can't think of anything else to search for.
Specifically, within an Excel macro I need to find the row number of the cell on a specific sheet that has a value that matches a variable. Then I need to use that row number to perform an action on another cell in that row. The value I'm looking for will be in Column C, then the action will be performed in Column A.
I have tried these solutions but no luck yet:
How to find the row number of a specific value in Excel using vbscript
Assigning the value of a worksheet cell to a constant
I've tried pasting my variable value into B1 as a placeholder, but I can't find a way to find the matching value elsewhere on the sheet (there will be only one other). I've tried:
Public Const SKUVALUE As String = "$B$1"
but of course that returns the quoted string, not the value of the B1 cell.
If it would help for me to explain the bigger picture of my project I will be happy to do that, but it's somewhat complicated. In short I am trying to bring content from one sheet to another sheet based on a numeric value (SKU) that is assigned to a specific row on each sheet. The row numbers will not match because of filters being applied on the first sheet. If I can mirror those filters on the second sheet then I would know the row number, but that sounds like a nightmare to implement. I can't begin to think how to do it.
I'm really at my wit's end with this. Any suggestions will be much appreciated. Thank you.