Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Question on automating Dialogboxes in VBA

Hello, I was wondering if the following is possible in VBA. I am
running a model that pops a dialog box up once in a while - each time,
the button I click to rerun the model is exactly the same, i.e. 'Run'.
Is there anyway I can automate this process, so everytime the dialog
box pops up, it automatically clicks the 'Run' button. If not VBA, what
other program would be useful here. I was wondering if the answer might
be as simple as being able to run a Newline function within a dialog
box. Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Question on automating Dialogboxes in VBA

Look at SendKeys in VBA Help.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"VBAQuest" wrote in message
oups.com...
Hello, I was wondering if the following is possible in VBA. I am
running a model that pops a dialog box up once in a while - each time,
the button I click to rerun the model is exactly the same, i.e. 'Run'.
Is there anyway I can automate this process, so everytime the dialog
box pops up, it automatically clicks the 'Run' button. If not VBA, what
other program would be useful here. I was wondering if the answer might
be as simple as being able to run a Newline function within a dialog
box. Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Question on automating Dialogboxes in VBA

Is this dialog being shown by Solver?

--
Regards,
Tom Ogilvy


"VBAQuest" wrote in message
oups.com...
Hello, I was wondering if the following is possible in VBA. I am
running a model that pops a dialog box up once in a while - each time,
the button I click to rerun the model is exactly the same, i.e. 'Run'.
Is there anyway I can automate this process, so everytime the dialog
box pops up, it automatically clicks the 'Run' button. If not VBA, what
other program would be useful here. I was wondering if the answer might
be as simple as being able to run a Newline function within a dialog
box. Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Question on automating Dialogboxes in VBA

It's not solver - it's a customised dialog box that I have no control
over. Sendkey "{ENTER}", False doesn't seem to work on it, which is a
bit of a shame. Any other suggestions?

Tom Ogilvy wrote:

Is this dialog being shown by Solver?

--
Regards,
Tom Ogilvy


"VBAQuest" wrote in message
oups.com...
Hello, I was wondering if the following is possible in VBA. I am
running a model that pops a dialog box up once in a while - each time,
the button I click to rerun the model is exactly the same, i.e. 'Run'.
Is there anyway I can automate this process, so everytime the dialog
box pops up, it automatically clicks the 'Run' button. If not VBA, what
other program would be useful here. I was wondering if the answer might
be as simple as being able to run a Newline function within a dialog
box. Thanks.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Question on automating Dialogboxes in VBA

Problem solved. Inserted sendkeys before rather than after. Thanks very
much. Naresh



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
Automating using VBA Automate my database Excel Worksheet Functions 1 September 1st 05 01:51 PM
Automating a report sharman Excel Programming 3 June 12th 05 02:34 AM
Automating Autofill Coding Question TrishaB Excel Programming 10 February 7th 05 02:36 PM
Automating PP from XL Keith R[_3_] Excel Programming 0 November 20th 03 08:42 PM
dialogboxes Jonas Excel Programming 2 July 9th 03 11:30 AM


All times are GMT +1. The time now is 12:03 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"