Results 1 to 10 of 10

Click yes on an Excel dialog box

Threaded View

xkyml Click yes on an Excel dialog... 06-29-2022, 11:35 AM
carlmon Re: Click yes on an Excel... 06-29-2022, 11:57 AM
xkyml Re: Click yes on an Excel... 06-29-2022, 01:12 PM
carlmon Re: Click yes on an Excel... 06-29-2022, 01:19 PM
xkyml Re: Click yes on an Excel... 06-29-2022, 01:42 PM
carlmon Re: Click yes on an Excel... 06-29-2022, 01:44 PM
xkyml Re: Click yes on an Excel... 06-29-2022, 02:21 PM
carlmon Re: Click yes on an Excel... 06-29-2022, 02:34 PM
xkyml Re: Click yes on an Excel... 06-29-2022, 05:26 PM
mogul Re: Click yes on an Excel... 06-29-2022, 05:41 PM
  1. #1
    Registered User
    Join Date
    06-29-2022
    Location
    Canada
    MS-Off Ver
    365
    Posts
    5

    Click yes on an Excel dialog box

    Hi,

    I'm using a commercially produced macro (RunDataInterpolateSheet) to pull data from a database. I have no ability to modify this macro. When run, this macro generates a dialog box:

    dialog.JPG

    I want to run this macro for a number of different columns. I wrote this short script to do that:

    Sub RunOneSheet()
        'Application.DisplayAlerts = False
        For i = 5 To 3000
            If Cells(1, i) <> "" Then
                Columns(i).Select
                Application.Run ("ThisWorkbook.RunDataInterpolateSheet")
                'Application.SendKeys "y", True
            End If
        Next i
        'Application.DisplayAlerts = True
    End Sub

    I need my macro to click the yes button produced by the RunDataInterpolateSheet macro. I have unsuccessfully tried "Application.DisplayAlerts = False" and "Application.SendKeys "y", True". Does anyone know how I can do this?

    Thanks,
    Mark
    Last edited by xkyml; 06-29-2022 at 11:37 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Image Placeholder (Dialog Box upon click)
    By olga6542 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2020, 03:37 AM
  2. How cal i populate the Dialog Box when the Right Click mouse Button
    By karthisucc9 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-05-2012, 08:54 AM
  3. When i click the Hyper link The Dialog Box should populate
    By karthisucc9 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-12-2012, 10:16 AM
  4. Replies: 3
    Last Post: 02-01-2010, 07:02 PM
  5. 'Unprotect' dialog box appears on every click
    By danmahoney in forum Excel General
    Replies: 0
    Last Post: 02-15-2006, 12:10 PM
  6. [SOLVED] Right click dialog
    By Adam in forum Excel General
    Replies: 3
    Last Post: 08-09-2005, 07:05 PM
  7. how to capture button click from file dialog
    By chawla12amit in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2005, 06:02 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1