Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

Re: Issue with Macro

$
0
0

Hi Manny,

 

You have to declare local variables in the procedures you use them. Or you can declare global module level variable.

 

For example:

 

Sub Refresh()

     Dim EPMobject As New FPMXLClient.EPMAddInAutomation       

     EPMobject.RefreshActiveSheet

End Sub

 

And please add at the beginning of the module the line Option Explicit - then all not declared variables will be shown on the compile step.

 

B.R. Vadim


Viewing all articles
Browse latest Browse all 9129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>