| | |
Bypassing Excel file opening message
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: May 2007
Posts: 2
Reputation:
Solved Threads: 0
Hi all, first post.
I am working with excel files which get their data from htm files on the same folder location. Every time I open the xls file I get a prompt "Some of the files in this web page arent in the expected location. Do you want to download them anyway? If you're sure the web page is from a trusted source, click yes" and there are buttons for yes, no and cancel.
Is there some vba code (I am using v6) I can write which will select "Yes" when the file is being opened so I dont have to click every time?
Thanks for your help.
I am working with excel files which get their data from htm files on the same folder location. Every time I open the xls file I get a prompt "Some of the files in this web page arent in the expected location. Do you want to download them anyway? If you're sure the web page is from a trusted source, click yes" and there are buttons for yes, no and cancel.
Is there some vba code (I am using v6) I can write which will select "Yes" when the file is being opened so I dont have to click every time?
Thanks for your help.
•
•
Join Date: Aug 2006
Posts: 20
Reputation:
Solved Threads: 1
If this is the message popped up by Excel you can cancel that by
Dim oXL As Excel.Application
oXL.DisplayAlerts = False
after you complete you can reset by
oXL.DisplayAlerts = True
Dim oXL As Excel.Application
oXL.DisplayAlerts = False
after you complete you can reset by
oXL.DisplayAlerts = True
•
•
Join Date: May 2007
Posts: 2
Reputation:
Solved Threads: 0
Hi Shasur,
Thanks for the reply. I think I get what you are suggesting, but the thing is I need to actually select the "yes" button which is not the default option. I think if I do what you suggest, yes it will open the file without a message but it will open with the default of "no" which is to not populate the spreadsheet with data.
Cheers.
Thanks for the reply. I think I get what you are suggesting, but the thing is I need to actually select the "yes" button which is not the default option. I think if I do what you suggest, yes it will open the file without a message but it will open with the default of "no" which is to not populate the spreadsheet with data.
Cheers.
![]() |
Similar Threads
- Open Excel file from Visual Basic (Visual Basic 4 / 5 / 6)
- Unable to create an excel file in VB.net (VB.NET)
- Manipulate Excel file using C++?? (C++)
- Get data out of excel file stored as an image (MS SQL)
- grabbing source from excel file (was: please, somebody help me!!!) (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: VB Macro query - overwriting existing files
- Next Thread: Anybody Plz. Help Me URGENT Requirement.
Views: 1294 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





