ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Macro Using 'FIND' function across several worksheets (https://www.excelbanter.com/excel-discussion-misc-queries/159071-macro-using-find-function-across-several-worksheets.html)

Jennifer Cali

Macro Using 'FIND' function across several worksheets
 
Hello,
I'd like to write a macro so the user can run a macro that will:
1) ask the user to input a value
2) search for the value in the current worksheet
3) if the value is not found, move to the next worksheet and continue search
4) if the value is not found, move to the next worksheet and continue search
(etc.)

I know in Excel I hit 'Ctrl' + 'F' and enter the value, then click 'Search'.
If I get the message that no values are found, I hit 'Ctrl' + 'PgDn' to move
to the next sheet (etc.). We have upwards of 20+ worksheets in each workbook
and it takes forever to manually move between sheets. Can anyone help?

--
Thank you! - Jennifer

Bob I

Macro Using 'FIND' function across several worksheets
 
If you do "select all" on the worksheet tab, all sheets will be searched
from Ctrl+F.

Jennifer Cali wrote:

Hello,
I'd like to write a macro so the user can run a macro that will:
1) ask the user to input a value
2) search for the value in the current worksheet
3) if the value is not found, move to the next worksheet and continue search
4) if the value is not found, move to the next worksheet and continue search
(etc.)

I know in Excel I hit 'Ctrl' + 'F' and enter the value, then click 'Search'.
If I get the message that no values are found, I hit 'Ctrl' + 'PgDn' to move
to the next sheet (etc.). We have upwards of 20+ worksheets in each workbook
and it takes forever to manually move between sheets. Can anyone help?



Dave Peterson

Macro Using 'FIND' function across several worksheets
 
You could also use Jan Karel Pieterse's FlexFind:
http://www.oaltd.co.uk/MVP/

(The feature that Bob I suggested was added in xl2002, IIRC.)

Jennifer Cali wrote:

Hello,
I'd like to write a macro so the user can run a macro that will:
1) ask the user to input a value
2) search for the value in the current worksheet
3) if the value is not found, move to the next worksheet and continue search
4) if the value is not found, move to the next worksheet and continue search
(etc.)

I know in Excel I hit 'Ctrl' + 'F' and enter the value, then click 'Search'.
If I get the message that no values are found, I hit 'Ctrl' + 'PgDn' to move
to the next sheet (etc.). We have upwards of 20+ worksheets in each workbook
and it takes forever to manually move between sheets. Can anyone help?

--
Thank you! - Jennifer


--

Dave Peterson


All times are GMT +1. The time now is 02:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com