Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Please help me modify the VBA code listed below. If the value for Volume is Null then return a value of zero. Thanks, With Sheets("Sheet1") .Cells(RowCount, "A") = Team .Cells(RowCount, "B") = Volume .Cells(RowCount, "C") = Date End With |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() With Sheets("Sheet1") .Cells(RowCount, "A") = Team .Cells(RowCount, "B") = iif(isnull(Volume) = true,0,Volume) .Cells(RowCount, "C") = Date End With hth Keith |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub routine()
With Sheets("Sheet1") .Cells(RowCount, "A") = Team If Volume = "" Then .Cells(RowCount, "B") = 0 Else .Cells(RowCount, "B") = Volume End If .Cells(RowCount, "C") = Date End With End Sub -- Gary''s Student - gsnu200755 "Dean P." wrote: Please help me modify the VBA code listed below. If the value for Volume is Null then return a value of zero. Thanks, With Sheets("Sheet1") .Cells(RowCount, "A") = Team .Cells(RowCount, "B") = Volume .Cells(RowCount, "C") = Date End With |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Failed to save table attributes of (null) into (null). | Excel Discussion (Misc queries) | |||
COUNTIF says Null = Blank but Blank < Null | Excel Worksheet Functions | |||
Null, "null", vbNull, vbNullString, vbEmpty | Excel Programming | |||
cell value based on null/not null in another cell | Excel Worksheet Functions | |||
Using Nothing and Null | Excel Programming |