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: 7
Default enum - howto make columns correspond to numbers?

Hi.
I need to reference my columns by number - e.g. a variable X = 4
should be a reference to the column D.

My first though was to use enum, where I set the value of each column
to their corresponding number, like this:
public enum IChar
A = 1
B = 2
C = 3
D = 4
....
end enum

Now, if my X = 4, I need to find the correct character according to my
enum:
IChar.D = 4

But is there some predefined function which will help me find the
correct enum?
Something like this findEnum(X), e.g. findEnum(4) = D.

I really believe this will be my solution as I need to select
programatically (VB) a set of columns according to a user-input in my
worksheet.

Looking forward to your help.

 
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
using filter to make a merged cell correspond adjacent cells komo2kay Excel Discussion (Misc queries) 0 December 11th 08 04:11 PM
How do make a line correspond to date soconfused Charts and Charting in Excel 7 May 24th 07 08:34 PM
Excel 97 Enum Larry Dodd[_2_] Excel Programming 5 April 11th 05 11:15 AM
Enum Daniel[_4_] Excel Programming 3 December 22nd 03 12:30 AM


All times are GMT +1. The time now is 02:49 PM.

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"