Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, is there somehow tell VB that 0<Empty??????
I have problems with this part of my code blablabla If Cells(aa, columna) = c Then ssss = Cells(aa, columna).Address(False, False) Set rngEndCell = Range(ssss) columna = columna + 1 b = b + 1 GoTo siguiente2 End If blalbalba when c=0 but cells(aa,columna)=empty the programs goes inside the if structure So I need to tell VB that 0 is different of Empty How to accomplish this???? TIA |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Change the If line to read:
If (Cells(aa, columna) < "") and (Cells(aa, columna) = c) Then That's all on one line. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
if isempty(yourcellhere) then
'do what you want with empty else if yourcellhere.value = 0 then 'not empty, but equal to 0. end if end if filo666 wrote: Hi, is there somehow tell VB that 0<Empty?????? I have problems with this part of my code blablabla If Cells(aa, columna) = c Then ssss = Cells(aa, columna).Address(False, False) Set rngEndCell = Range(ssss) columna = columna + 1 b = b + 1 GoTo siguiente2 End If blalbalba when c=0 but cells(aa,columna)=empty the programs goes inside the if structure So I need to tell VB that 0 is different of Empty How to accomplish this???? TIA -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks Dave, it works just fine
sorry Mark but it didn't work well "Dave Peterson" wrote: if isempty(yourcellhere) then 'do what you want with empty else if yourcellhere.value = 0 then 'not empty, but equal to 0. end if end if filo666 wrote: Hi, is there somehow tell VB that 0<Empty?????? I have problems with this part of my code blablabla If Cells(aa, columna) = c Then ssss = Cells(aa, columna).Address(False, False) Set rngEndCell = Range(ssss) columna = columna + 1 b = b + 1 GoTo siguiente2 End If blalbalba when c=0 but cells(aa,columna)=empty the programs goes inside the if structure So I need to tell VB that 0 is different of Empty How to accomplish this???? TIA -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If result of formula is "" (Blank) why is this considered a num. | Excel Worksheet Functions | |||
why a reference to an empty cell is not considered empty | Excel Discussion (Misc queries) | |||
what is used for cell entries that are considered subsections of . | Excel Discussion (Misc queries) | |||
Using a function from a vba add-in: is that considered an external link | Excel Programming | |||
Can blank cells created using empty Double-Quotes not be empty?? | Excel Programming |