davedave24
Programmer
Hello
I'm trying to import a sheet from another workbook (this part is fine). Let's say import Sheet1 from workbook B into workbook A.
The issue is when workbook B is opened, it runs a subroutine that results in a MsgBox.
Is there:
a) a way to surpess this MsgBox only when importing the sheet, from B into A (so it functions as normal if the user is just using B;
or
b) a method of extracting the sheet without actually opening the other workbook?
For a) I've been looking at this post, but I don't really understand what the fella is saying in this part:
Modify the line where you call the original sub by throwing in False as an extra parameter. This results in OriginalSubNameyour set of parameters, False. This way you don't suppress the dialog box by default, but you do when you use it in your sub.
I'm trying to import a sheet from another workbook (this part is fine). Let's say import Sheet1 from workbook B into workbook A.
The issue is when workbook B is opened, it runs a subroutine that results in a MsgBox.
Is there:
a) a way to surpess this MsgBox only when importing the sheet, from B into A (so it functions as normal if the user is just using B;
or
b) a method of extracting the sheet without actually opening the other workbook?
For a) I've been looking at this post, but I don't really understand what the fella is saying in this part:
Modify the line where you call the original sub by throwing in False as an extra parameter. This results in OriginalSubNameyour set of parameters, False. This way you don't suppress the dialog box by default, but you do when you use it in your sub.