Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
type mismatch
hi,
i have the following: Dim NEWFILE As String NEWFILE = Range("C" & x).Value .... Dim test As String test = Evaluate("LEFT(NEWFILE,FIND(""_"", NEWFILE ,1)-1)") not sure what is wrong with the syntax thanks in advance, geebee |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
type mismatch
Try this
NEWFILE = "" & Range("C" & x).Value & "" "geebee" wrote: hi, i have the following: Dim NEWFILE As String NEWFILE = Range("C" & x).Value ... Dim test As String test = Evaluate("LEFT(NEWFILE,FIND(""_"", NEWFILE ,1)-1)") not sure what is wrong with the syntax thanks in advance, geebee |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
type mismatch
hi,
i tried: Dim NEWFILE As String NEWFILE = "" & Range("C" & x).Value & "" Dim test As String test = Evaluate("LEFT(" & NEWFILE & ",FIND(""_""," & NEWFILE & ",1)-1)") .. still getting same error message "Mike" wrote: Try this NEWFILE = "" & Range("C" & x).Value & "" "geebee" wrote: hi, i have the following: Dim NEWFILE As String NEWFILE = Range("C" & x).Value ... Dim test As String test = Evaluate("LEFT(NEWFILE,FIND(""_"", NEWFILE ,1)-1)") not sure what is wrong with the syntax thanks in advance, geebee |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
type mismatch
What's in that cell?
What are your trying to accomplish? VBA has its own left() function and it can use inStr() to inspect strings. geebee wrote: hi, i have the following: Dim NEWFILE As String NEWFILE = Range("C" & x).Value ... Dim test As String test = Evaluate("LEFT(NEWFILE,FIND(""_"", NEWFILE ,1)-1)") not sure what is wrong with the syntax thanks in advance, geebee -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Type Mismatch: array or user defined type expected | Excel Programming | |||
TYPE MISMATCH | Excel Programming | |||
Type mismatch using rnge as Range with Type 8 Input Box | Excel Programming | |||
Type mismatch ! | Excel Programming | |||
Help: Compile error: type mismatch: array or user defined type expected | Excel Programming |