Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Save and Replace in VB Script

Hi Guys,

Using VB Script I am trying to save an excel file out of Qlikview ending with the following:

XLSheet1.SaveAs "C:\Users\User\Test_Output.xlsx"

XLDOC.Application.Quit

The doc 'Test_Output.xlsx' already exists so I am essentially trying to replace it and close the document with no user interaction. However every time I run this script the excel prompts the attached dialog to confirm the user wishes to replace the file.


Is there a VB function to essentially save and replace without this prompt?

1 Solution

Accepted Solutions
m_woolf
Master II
Master II

Before the save command. try:

XLDOC.Application.DisplayAlerts = False;

View solution in original post

2 Replies
m_woolf
Master II
Master II

Before the save command. try:

XLDOC.Application.DisplayAlerts = False;

Not applicable
Author

Thanks Mike worked a dream