Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using macros to open a file with the Find Menu option available

Hi -

I am looking to open a file with the Find function enabled immediately. I
thought I could do this using an auto_open macro, however, the Find dialog
box doesn't appear.

Is there a way I can make the dialog box appear with the macro or is there a
different way to have the Find function open automatically upon opening a
file?

Thanks!
Jessica
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Using macros to open a file with the Find Menu option available

use the workbook's open event ...

Private Sub Workbook_Open()
Application.Dialogs(xlDialogFormulaFind).Show
End Sub

this is in the code behind ThisWorkbook. Are you ok finding that?

"jessdaisy" wrote:

Hi -

I am looking to open a file with the Find function enabled immediately. I
thought I could do this using an auto_open macro, however, the Find dialog
box doesn't appear.

Is there a way I can make the dialog box appear with the macro or is there a
different way to have the Find function open automatically upon opening a
file?

Thanks!
Jessica

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Using macros to open a file with the Find Menu option available

I put this in a general module and it seemed to work ok for me:

Option Explicit
Sub auto_open()
Application.Dialogs(xlDialogFormulaFind).Show
End Sub



jessdaisy wrote:

Hi -

I am looking to open a file with the Find function enabled immediately. I
thought I could do this using an auto_open macro, however, the Find dialog
box doesn't appear.

Is there a way I can make the dialog box appear with the macro or is there a
different way to have the Find function open automatically upon opening a
file?

Thanks!
Jessica


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Using macros to open a file with the Find Menu option availabl

Should I input this in the VB Script?

"Patrick Molloy" wrote:

use the workbook's open event ...

Private Sub Workbook_Open()
Application.Dialogs(xlDialogFormulaFind).Show
End Sub

this is in the code behind ThisWorkbook. Are you ok finding that?

"jessdaisy" wrote:

Hi -

I am looking to open a file with the Find function enabled immediately. I
thought I could do this using an auto_open macro, however, the Find dialog
box doesn't appear.

Is there a way I can make the dialog box appear with the macro or is there a
different way to have the Find function open automatically upon opening a
file?

Thanks!
Jessica

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Using macros to open a file with the Find Menu option available

open the VB editor - ALT+F11

then you can use either the AUTO_OPEN or the Workbook Open event
- my code or Dave's is teh same, just in a different place

Mine: in the Project Explorer, expand the VBAProject for your workbook.
Right click on ThisWorkbook & select View code
in the code window , paste in my code

Dave's: Open a standard code module from the menu bar : INSERT / MODULE
(NOT CLASS MODULE!)
and paste in Dave's code.

These both execute when the workbook opens.


"jessdaisy" wrote:

Hi -

I am looking to open a file with the Find function enabled immediately. I
thought I could do this using an auto_open macro, however, the Find dialog
box doesn't appear.

Is there a way I can make the dialog box appear with the macro or is there a
different way to have the Find function open automatically upon opening a
file?

Thanks!
Jessica



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Using macros to open a file with the Find Menu option availabl

Thank you Patrick and Dave! I figured it out and it works! Exactly what I
wanted!

:-) Have a fantastic day!

"Patrick Molloy" wrote:

open the VB editor - ALT+F11

then you can use either the AUTO_OPEN or the Workbook Open event
- my code or Dave's is teh same, just in a different place

Mine: in the Project Explorer, expand the VBAProject for your workbook.
Right click on ThisWorkbook & select View code
in the code window , paste in my code

Dave's: Open a standard code module from the menu bar : INSERT / MODULE
(NOT CLASS MODULE!)
and paste in Dave's code.

These both execute when the workbook opens.


"jessdaisy" wrote:

Hi -

I am looking to open a file with the Find function enabled immediately. I
thought I could do this using an auto_open macro, however, the Find dialog
box doesn't appear.

Is there a way I can make the dialog box appear with the macro or is there a
different way to have the Find function open automatically upon opening a
file?

Thanks!
Jessica

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keep macros from being ran under the tools option in the menu bar Jeremy Excel Discussion (Misc queries) 3 April 20th 10 08:42 PM
read-only option not appearing on file menu marnie Excel Discussion (Misc queries) 1 October 16th 07 04:38 PM
read-only option not appearing on file menu marnie Excel Discussion (Misc queries) 2 October 16th 07 03:21 PM
In Excel Tools Menu Option Dialog box don't open Amit Excel Discussion (Misc queries) 1 February 6th 06 03:44 PM
Where is menu option to enable macros? dc1995 Excel Discussion (Misc queries) 1 January 19th 06 08:01 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"