![]() |
Application.Dialogs(xlDialogFormulaFind).....HELP! !!!!!
I've got the below code:
Sheets("Data").Activate Cells.Select Application.Dialogs(xlDialogFormulaFind).Show "Hello" So when you go onto the sheet "Data" the find diallog box comes up with "Hello" in it. There are loads of instances of "Hello" on the Data sheet - how can I modify the above code, so that when the macro is run the first instance of Hello has already been found? Any help greatly appreciated Jason |
Application.Dialogs(xlDialogFormulaFind).....HELP! !!!!!
Dim rng as range
Sheets("Data").Activate Cells.Select set rng = Cell.Find("Hello") if not rng is nothing then rng.Select Application.Dialogs(xlDialogFormulaFind).Show "Hello" end if -- Regards, Tom Ogilvy "jason" wrote in message om... I've got the below code: Sheets("Data").Activate Cells.Select Application.Dialogs(xlDialogFormulaFind).Show "Hello" So when you go onto the sheet "Data" the find diallog box comes up with "Hello" in it. There are loads of instances of "Hello" on the Data sheet - how can I modify the above code, so that when the macro is run the first instance of Hello has already been found? Any help greatly appreciated Jason |
Application.Dialogs(xlDialogFormulaFind).....HELP! !!!!!
Nice one Tom!
I ended up using: Dim rng as range Sheets("Data").Activate Cells.Select Set rng = Cells.Find("Hello") If Not rng Is Nothing Then rng.Activate Application.Dialogs(xlDialogFormulaFind).Show "Hello" End If I just changed 'rng.Select' to 'rng.Activate' so that when the user hits the find button it will go to the next instances of "hello". Thanks again for the help Jason "Tom Ogilvy" wrote in message ... Dim rng as range Sheets("Data").Activate Cells.Select set rng = Cell.Find("Hello") if not rng is nothing then rng.Select Application.Dialogs(xlDialogFormulaFind).Show "Hello" end if -- Regards, Tom Ogilvy "jason" wrote in message om... I've got the below code: Sheets("Data").Activate Cells.Select Application.Dialogs(xlDialogFormulaFind).Show "Hello" So when you go onto the sheet "Data" the find diallog box comes up with "Hello" in it. There are loads of instances of "Hello" on the Data sheet - how can I modify the above code, so that when the macro is run the first instance of Hello has already been found? Any help greatly appreciated Jason |
All times are GMT +1. The time now is 05:30 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com