View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
majikman[_21_] majikman[_21_] is offline
external usenet poster
 
Posts: 1
Default using Switch() to call functions

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

--
Message posted from http://www.ExcelForum.com