Declaring Procedure Variables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Thanks in advance for any help you can provide.
Using XL2000 on WinXP

I'm writing a procedure that uses Essbase to zoom-in or zoom-out on data
within a worksheet. I want to use the same procedure for the zoom-in as the
zoom-out, but have a variable tell the procedure what to do when it is called
(zoom-in or zoom-out). Here's my procedure declaration:

Sub Member_Zoom(ZoomDirection as ??)

When I call Member_Zoom, I want a list a possible values for ZoomDirection
to appear (i.e. In, Out) much like when you call a message box and the values
for the buttons appear (i.e. vbOkOnly, vbOk, etc).

Any ideas on how this is done? Thanks again.
 
At the top of a module

Public Enum Zoomtype
Zoom-in = -1
Zoom-out = 0
End Enum

Sub Member_Zoom(ZoomDirection as Zoomtype)


End sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

PageSetup.Zoom=TRUE 3
How to best select from image and print full size? 1
Declaring Variables 3
zoom in on range 1
How to zoom in VBA 4
Chart zoom 1
Essbase Add-In Functions 2
Tab Code Retrieve a Value 3

Back
Top