Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
I have the following DefinedNames conlOFFSET_COLS = 4 and conlINPUT_COLS = 6. I want to assign these two constants to my VBA code so that I can use their values in my procedure. I have the following code ... Dim lOFFSET_COLS As Long Dim lINPUT_COLS As Long lOFFSET_COLS = ActiveSheet.Names("conlOFFSET_COLS").Value lINPUT_COLS = ActiveSheet.Names("conlINPUT_COLS").Value When the code is executed I get a TypeMismatch error. I have tried various ways of extracting the values but can't seem to get it right. Does anyone have any ideas Many thanks/sgl |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Public Const & RowSource | Excel Programming | |||
Concatenate a Const Name in Sub Routine | Excel Programming | |||
Const Array | Excel Programming | |||
Not recognizing a Const | Excel Programming | |||
crash changing const to public const | Excel Programming |