+ Reply to Thread
Results 1 to 2 of 2

Select file dialog appears when executing editing formula

Hybrid View

  1. #1
    Registered User
    Join Date
    09-05-2011
    Location
    Austria
    MS-Off Ver
    Excel 2003
    Posts
    4

    Select file dialog appears when executing editing formula

    Hi,

    Acutally I have this problem when using VBA code but it can be reproduced easily without using VBA. The problem is that an Select file dialog appears when editing a formula which uses another Excel file that does not exist yet. However, the file will exist in future and consequently I want the dialog not to appear. (I use a vba script that changes the formula and this script is executed quite often - everytime a formula is changed, the dialog appears.

    1. Create an empty excel sheet
    2. Insert any formula into any sheet cell: =COUNTA('c:\[Report.xlsx]Input'!$H$12:$H$90)-1
    3. Click Enter
    4. The dialog will appear

    Does anybody know how to prevent the appearence of the select file dialog?

    Thanks a lot!!!

    Best regards!

  2. #2
    Registered User
    Join Date
    09-05-2011
    Location
    Austria
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Select file dialog appears when executing editing formula

    Hi,
    I've already found a solution for this.
    You have to disable and enable the Excel alerts (before and after your vba code):
    Application.DisplayAlerts = true
    code...
    Application.DisplayAlerts = false

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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