Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I am getting value from a cell with VBA. dim a as double A= cell(1,1).value And this will be the caption of a label. But when i do this, there is an error like; "Type mismatch" What i guessed is that the label caption must be a text so i must convert it into string or text, right? If yes, how? If no? what can i do? thanks... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
dim A as String
A= Cstr(cell(1,1).value) Tim "SupperDuck" wrote in message ... Hello, I am getting value from a cell with VBA. dim a as double A= cell(1,1).value And this will be the caption of a label. But when i do this, there is an error like; "Type mismatch" What i guessed is that the label caption must be a text so i must convert it into string or text, right? If yes, how? If no? what can i do? thanks... |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try this:-
Sub jugation() Dim a As Double a = Cells(1, 1).Value b = CStr(a) End Sub Mike "SupperDuck" wrote: Hello, I am getting value from a cell with VBA. dim a as double A= cell(1,1).value And this will be the caption of a label. But when i do this, there is an error like; "Type mismatch" What i guessed is that the label caption must be a text so i must convert it into string or text, right? If yes, how? If no? what can i do? thanks... |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks.
"Tim" wrote: dim A as String A= Cstr(cell(1,1).value) Tim "SupperDuck" wrote in message ... Hello, I am getting value from a cell with VBA. dim a as double A= cell(1,1).value And this will be the caption of a label. But when i do this, there is an error like; "Type mismatch" What i guessed is that the label caption must be a text so i must convert it into string or text, right? If yes, how? If no? what can i do? thanks... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Converting list of numbers in Excel to a string of text in Word | Excel Discussion (Misc queries) | |||
Converting a text word or text string to a number | Excel Discussion (Misc queries) | |||
Converting text string back into a formula | Excel Discussion (Misc queries) | |||
Converting Text String to Separate Numbers | Excel Discussion (Misc queries) | |||
Converting text string to a its proper time format | Excel Discussion (Misc queries) |