Good morning!
I have a "Subscript out of range" issue. Background: working in Excel 2007 with an SAP BPC Add-In (BPC was formerly known as OutlookSoft). I know very little about VBA.
We have a file (call it file #1) that contains the following VBA:
Function AFTER_SEND(Argument As String)
Dim oCallingWorksheet As Worksheet
Set oCallingWorksheet = ActiveSheet
On Error Resume Next
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
> </o
>
Application.Run ("MNU_ETOOLS_EXPAND")
<o
> </o
>
AFTER_SEND = True
<o
> </o
>
End Function
If we keep file #1 open and then attempt to open a different Excel file (which contains other macros that run upon open), the Subscript message appears. We do not receive the same message when opening those files if file #1 is NOT open. So logic would seem to say the problem is in file #1. Having read some similiar posts, I'm inclined to think the problem is the reference to the "ActiveSheet" in the first file. Am I on the right track here? I'll reiterate that I have very little exposure to VBA.
Any help will be greatly appreciated! Thanks!
I have a "Subscript out of range" issue. Background: working in Excel 2007 with an SAP BPC Add-In (BPC was formerly known as OutlookSoft). I know very little about VBA.
We have a file (call it file #1) that contains the following VBA:
Function AFTER_SEND(Argument As String)
Dim oCallingWorksheet As Worksheet
Set oCallingWorksheet = ActiveSheet
On Error Resume Next
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com




Application.Run ("MNU_ETOOLS_EXPAND")
<o


AFTER_SEND = True
<o


End Function
If we keep file #1 open and then attempt to open a different Excel file (which contains other macros that run upon open), the Subscript message appears. We do not receive the same message when opening those files if file #1 is NOT open. So logic would seem to say the problem is in file #1. Having read some similiar posts, I'm inclined to think the problem is the reference to the "ActiveSheet" in the first file. Am I on the right track here? I'll reiterate that I have very little exposure to VBA.
Any help will be greatly appreciated! Thanks!