Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Re : Making use of the Built-in Dialog Boxes

1. Please examine the following code :-

Dim TextFind As String
Call Application.Dialogs(xlDialogFormulaFind).Show(Text Find, 2, 2, 1,
0, True, True)
MsgBox "TextFind = " & TextFind

2. It is in vain to store the text string (entered into the Find What
: text box of the built-in xlDialogFormulaFind) by using the argument
TextFind.

3. Please show the alternative means of capturing TextFind by using
VBA code.

4. Regards.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 391
Default Re : Making use of the Built-in Dialog Boxes

Use the FIND method...look in Help. There are some very
good code examples therein.

With Worksheets(1).Range("a1:a500")
Set c = .Find(2, lookin:=xlValues)
If Not c Is Nothing Then
firstAddress = c.Address
Do
c.Value = 5
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <
firstAddress
End If
End With

Patrick Molloy
Microsoft Excel MVP

-----Original Message-----
1. Please examine the following code :-

Dim TextFind As String
Call Application.Dialogs(xlDialogFormulaFind).Show

(TextFind, 2, 2, 1,
0, True, True)
MsgBox "TextFind = " & TextFind

2. It is in vain to store the text string (entered into

the Find What
: text box of the built-in xlDialogFormulaFind) by using

the argument
TextFind.

3. Please show the alternative means of capturing

TextFind by using
VBA code.

4. Regards.
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default Re : Making use of the Built-in Dialog Boxes

TKT-Tang wrote:
3. Please show the alternative means of capturing TextFind by using
VBA code.

I think there is none.

You would do better to get the TextFind via an InputBox and then use it
in the Find method.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Re : Making use of the Built-in Dialog Boxes

Mr. Manville and Mr Molloy,

Thank you for your replies.

Regards.

Yours faithfully,

TKT-Tang.
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
Built-in Dialog Box Argument Button Paula Excel Discussion (Misc queries) 0 March 30th 07 08:40 PM
Built in message boxes bgeldart Excel Discussion (Misc queries) 1 March 14th 05 02:27 PM
Built in message boxes Ben Geldart Excel Discussion (Misc queries) 0 March 14th 05 12:27 PM
Getting a file name using a built in dialog box Steven Revell Excel Programming 1 November 18th 03 01:14 PM
Built-in file dialog question MacroMan Excel Programming 1 August 7th 03 11:53 PM


All times are GMT +1. The time now is 05:47 AM.

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

About Us

"It's about Microsoft Excel"