473,698 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I handle opend application dialog box

2 New Member
Hello, I am trying to create my own macro to working application dialog box.

I find dialogbox of application on these code:
Sub DMEU()
'How to find FindControl ID for FindControl
'and Execute "Database Merge Export Utility"?
'ID: 39812

Dim myCommand As Object
Dim a
Dim b As Object
Dim buf() As Variant
Dim i As Long
Dim test

Set a = Application.Com mandBars.FindCo ntrols

'loop commandbars object
For Each b In a
i = i + 1
ReDim Preserve buf(1 To 2, 1 To i)
buf(1, i) = b.Caption
buf(2, i) = b.ID

If b.Caption = "Database Merge &Export Utility" Then
MsgBox (b.ID)
test = b.ID
End If
Next
'This code would show the "Database Merge Export Utility" dialogue box.
Set myCommand = Application.Com mandBars.FindCo ntrol(ID:=test)
myCommand.execu te


MsgBox "Done"

End Sub

But how can I handle opend application dialog box. There are buttons Finish and Cancel. I don't have any idea how to use them in my macro. I don't know what codes are there inside of the dialog box.
Jan 18 '07 #1
1 1313
Killer42
8,435 Recognized Expert Expert
Is this standalone VB? Or VBA built into MS Access or Excel, or what?

What version?
Jan 19 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
7181
by: Phil B Brubaker | last post by:
I'm trying to create my own shellexecute program named shell4OD and am having problems with handles. Here is my code ... ===== Private Declare Function ShellExecute Lib _ "shell32.dll" Alias "ShellExecuteA" _ (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As _ String, ByVal lpParameters As String, ByVal lpDirectory As String, _ ByVal nShowCmd As Long) As Long Public function Shell4OD( byVal cmd as string, byVal...
1
1944
by: Jinlin | last post by:
I found a interesting problem in C# and couldn't explain it. The code to reproduce it is very simple: 1. Create a windows application in C#. 2. Listen to the activated event on the default form --- Form1.cs 3. Create a method DoUpdate() which will popup two dialog boxes "Dialog box one" and "Dialog box two". 4. Call DoUpdate() in the activated event handling. It will look like the following:
4
1944
by: LhK-Soft | last post by:
Hi, I'm active in VC++ for several years now, so I know some things (I think). Using MS-Access I store a db with lots of entries and uses the VBA techniques to export those data to e.g. HTML, XML and other kind of data. I'm using MS-VC++6.0-Enterprise (with sp6) at NT4-Workstation (sp6a) and MS-Access97 (from MS-Office97). Reason that I won't upgrade to latest Office/VisualStudio is that I must ensure that any application I develop still...
12
1853
by: Daniel Walzenbach | last post by:
Hi, I have a Website which allows users to input data. After they finished entering data they can click a button to save their input. Problem now is, that I have no possibility to visualize that the page is being saved and when it is (hopefully) done saving. I thought about a modal window being opened using JavaScript when they click the save button telling them that the data is being saved. After saving is completed I could use...
15
4042
by: Adam J. Schaff | last post by:
I have noticed that if a user closes a form via pressing return (either while the OK button has focus or if AcceptButton is set to OK for the form) then the "ENTER" keypress event fires ON THE CALLING FORM! This is very bad for me, because in my application, Form1 responds to an ENTER keypress by calling Form2. If the user closes Form2 via an ENTER, then Form1 just reopens it again, kind of trapping the user in Form2 (they can still close...
1
8588
by: prasannacse | last post by:
in the run time i want to close all the opend files if there is. i couldnt find which file is not closed. when i run the application frirst time it should delete a folder which folder contains some files and subfolders. when i execute first time it doesnt give problem. but in the runtime when i execute second time. it doesnt delete the above folder. so that my application doesnot execute. so any on e please give me some solution for this.
3
4013
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user selects? thanks...
1
4758
by: kgerritsen | last post by:
I am building an application that will receive input from a barcode scanner. The barcode scanner is configured to append to the front value a single character and hyphen that identify the barcode standard, then the value in the barcode, terminated by a return. The barcode scanner appears to the operating system as a USB keyboard. I am loading the barcode value into a textbox both on my Form1 and on a dialog box where the user has to...
2
1560
by: Nicholas | last post by:
Hello, I'm new in Javascript and it seems I'm a bit stuck so if someone can help. The problem is 4th button / function. I dont know how to talk to the opend window, the thing with focus i wrote doesen't work so i didn't wrote code for randomizeing location (this i know how to do). Did i do something wrong? window.opener works fine form the child window is there something similar
0
9156
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9021
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4365
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4614
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2327
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.