problema iif
Publicado por birkoof (3 intervenciones) el 16/06/2006 16:32:51
hola a todos:
Tengo un formulario en el que voy a intentar hacer un asistente para la función iif
Tengo 3 refedit para introducir los valores de la función y 1 para introducir la celda donde irá el resultado
mi código es el siguiente:
Dim strresultado As String
Dim strcondicion As String
Dim strverdadero As String
Dim strfalso As String
strcondicion = refcondicion.Value
strverdadero = Refverdadero.Value
strfalso = Reffalso.Value
strresultado = VBA.Interaction.IIf(strcondicion, strverdadero, strfalso)
Range(Refdestino).Select
ActiveCell.Value = strresultado
me da error de tipos
me podeis ayudar??
gracias...
Tengo un formulario en el que voy a intentar hacer un asistente para la función iif
Tengo 3 refedit para introducir los valores de la función y 1 para introducir la celda donde irá el resultado
mi código es el siguiente:
Dim strresultado As String
Dim strcondicion As String
Dim strverdadero As String
Dim strfalso As String
strcondicion = refcondicion.Value
strverdadero = Refverdadero.Value
strfalso = Reffalso.Value
strresultado = VBA.Interaction.IIf(strcondicion, strverdadero, strfalso)
Range(Refdestino).Select
ActiveCell.Value = strresultado
me da error de tipos
me podeis ayudar??
gracias...
Valora esta pregunta


0