using Switch() to call functions

  • Thread starter Thread starter majikman
  • Start date Start date
M

majikman

I have different code modules i've created and they are to be ru
depending on the user that is logged in. I would prefer to use th
Switch() statement instead of a series of If..Then..Else statements
Problem is, i'm not sure how to do it since the definition of Switch(
seems to have to return something. I'm more familiar with C++ and I'
like to be able to use the VBA Switch much like I could with the C+
switch. If anyone can point me to some information or give me a
example, I would greatly appreciate that. Thanks
 
Try the "Select Case" statement. That's VBA's equivalent of Java's Switch()
statement, so it's probably the same as the Switch() statement in C++, too.

Regards,
Wes
 

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

Back
Top