R
raj
i have 3 sheets
one input for records
one for a output after formatting input records
one for a lookup table
i need to use the look up table to tranform some values and output to the
output sheet
i can t get the vlookup working
in the sheet with the lookup table i have the range defined (which is
A2:b11) as NAICLookUp
here is the code
i have the sheet defined as
Dim NAICCodeTranslation As Worksheet '//NAIC code translation worksheet
Worksheets("NAIC code translation").Activate
Set NAICCodeTranslation = ActiveSheet
' code to active and set other work sheets
codenewval = Application.WorksheetFunction.VLookup(codeval, Sheets("NAIC
Code Translation").Range("NAICLookup"), 2, False)
i am getting subscript out of range error with the above (the sheet has
spaces in its name)
I also tried
codenewval = Application.WorksheetFunction.VLookup(codeval,
NAICCodeTranslation.Range("A2:B11"), 2, False)
and i get error saying "unable to get the VLookUp property of the
worksheetfunction class"
The table is basically name value pair
table A is name that i look up to get the value from table b
thanks
one input for records
one for a output after formatting input records
one for a lookup table
i need to use the look up table to tranform some values and output to the
output sheet
i can t get the vlookup working
in the sheet with the lookup table i have the range defined (which is
A2:b11) as NAICLookUp
here is the code
i have the sheet defined as
Dim NAICCodeTranslation As Worksheet '//NAIC code translation worksheet
Worksheets("NAIC code translation").Activate
Set NAICCodeTranslation = ActiveSheet
' code to active and set other work sheets
codenewval = Application.WorksheetFunction.VLookup(codeval, Sheets("NAIC
Code Translation").Range("NAICLookup"), 2, False)
i am getting subscript out of range error with the above (the sheet has
spaces in its name)
I also tried
codenewval = Application.WorksheetFunction.VLookup(codeval,
NAICCodeTranslation.Range("A2:B11"), 2, False)
and i get error saying "unable to get the VLookUp property of the
worksheetfunction class"
The table is basically name value pair
table A is name that i look up to get the value from table b
thanks