Pinaceous
Well-known Member
- Joined
- Jun 11, 2014
- Messages
- 1,124
- Office Version
- 365
- Platform
- Windows
Hi All,
I'm using this code below to have the user import information onto their wook sheet. Working great!
Now, my question is; the file that they are importing is an macro enabled document that has MsgBox pop ups when that document is opened.
How would I disable the MsgBox popup that is part of its
Thank you!
I'm using this code below to have the user import information onto their wook sheet. Working great!
Code:
Dim sFilename As Variant
Dim wsDest As Worksheet
ChDrive "S:"
ChDir "S:\GROUPS\Depts\ADMIN"
sFilename = Application.GetOpenFilename("Excel Files, *.xlsm", , "SELECT File!!")
If sFilename = False Then
MsgBox "Not IMPORTING File!!", vbInformation, "ProtectUpdate!"
Exit Sub
End If
Set wsDest = ActiveWorkbook.Sheets(10)
Application.ScreenUpdating = False
On Error Resume Next
With Workbooks.Open(sFilename)
.Sheets(11).Range("A1:Q178").Copy wsDest.Range("A1:Q178")
.Close False
End With
Now, my question is; the file that they are importing is an macro enabled document that has MsgBox pop ups when that document is opened.
How would I disable the MsgBox popup that is part of its
for this file import because it is unnecessary to open this pop-up for import?auto open
Thank you!