zakarls Posted July 17, 2018 Share Posted July 17, 2018 I've tried finding this but I cannot anywhere. I would like to find all occurrences of a value in a certain sheet of an excel workbook. When I try to use _Excel_RangeFind it finds the value across all sheets. $aResult = _Excel_RangeFind($oWorkbook, $fileName, $oWorkbook.Worksheets(4)) I am trying to use this to return only the results from worksheet 4 but it returns nothing. Link to comment Share on other sites More sharing options...
Subz Posted July 18, 2018 Share Posted July 18, 2018 Try: $aResult = _Excel_RangeFind($oWorkbook, $fileName, $oWorkbook.Worksheets(4).UsedRange) zakarls 1 Link to comment Share on other sites More sharing options...
zakarls Posted July 18, 2018 Author Share Posted July 18, 2018 This worked! Thanks a lot. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now