LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Get an enum value assigned with *concatenated* string

Hi everyone,

Thanks for Joel and Sheeloo for my previous post.

I want to now concatenate a name of enum item and get its value.

So, an example is:

Enum Periodicity
abcWeekly = 52
abcMonthly = 12
abcYearly = 1
End Enum

The reason why I want to do this is 1) get user input of "Monthly" and 2)
add a prefix of "abc" to get a value of "12"!

How can I do that?

I tried Application.Evaluate("abc"&"Monthly"), but in vain...

Thanks in advance!
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get an enum value assigned Tetsuya Oguma Excel Programming 2 October 21st 08 06:52 AM
help with finding a concatenated string Gary Keramidas Excel Programming 3 May 28th 07 01:13 AM
Bold a portion of concatenated string joeeng Excel Discussion (Misc queries) 1 December 8th 05 08:26 PM
specify range name in formula with concatenated string Lori H Excel Worksheet Functions 2 July 19th 05 03:07 PM
programmatic generation of Enum To String functions R Avery[_2_] Excel Programming 3 March 28th 05 04:22 PM


All times are GMT +1. The time now is 02:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"