Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm importing a fixed width text file into another workbook using
workbooks.opentext and would like to store all the setup info for this process in a table within an Excel sheet so the user can change the setup when they need to. At the moment, I have columns for Field Headings (text), Field Format (being the text for xlColumnDataTypes), and start position (integer). When I read the data in however, the FieldInfo is expecting an integer Excel constant (eg xlTextFormat or 2), rather than the text of this (eg "xlTextFormat"). Is there a way to convert from a string representation of an Excel constant to the constant's actual value? I thought of using Evaluate (but that's only for cell/range references) or CInt (doesn't work either). I'm kludging it at the moment by doing a vlookup and getting the appropriate integer value that way but surely there's a more elegant solution? Any ideas? tia Jeff |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Replacing a formula with the actual string or number | Excel Discussion (Misc queries) | |||
get actual date from variable text string | Excel Programming | |||
get actual date from variable text string | Excel Programming | |||
VB.Net - retrieve actual formula string | Excel Programming | |||
Change Defined Name Constant String | Excel Programming |