Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi there Code: -------------------- 'IF isempty(cells(r,14)) then leave Cells(r, 15) empty. Cells(r, 15) = Application.VLookup(Cells(r, 4), AccChart2, 2, False) -------------------- how to combine these tow line to be written in one VBA line? -- helmekki ------------------------------------------------------------------------ helmekki's Profile: http://www.excelforum.com/member.php...fo&userid=6939 View this thread: http://www.excelforum.com/showthread...hreadid=392467 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This seems too simplistic, but do you mean
IF Not isempty(cells(r,14)) Cells(r, 15) = Application.VLookup(Cells(r, 4), AccChart2, 2, False) End If -- HTH Bob Phillips "helmekki" wrote in message ... Hi there Code: -------------------- 'IF isempty(cells(r,14)) then leave Cells(r, 15) empty. Cells(r, 15) = Application.VLookup(Cells(r, 4), AccChart2, 2, False) -------------------- how to combine these tow line to be written in one VBA line? -- helmekki ------------------------------------------------------------------------ helmekki's Profile: http://www.excelforum.com/member.php...fo&userid=6939 View this thread: http://www.excelforum.com/showthread...hreadid=392467 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thank u very muc -- helmekk ----------------------------------------------------------------------- helmekki's Profile: http://www.excelforum.com/member.php...nfo&userid=693 View this thread: http://www.excelforum.com/showthread.php?threadid=39246 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() If IsEmpty(Cells(r, 14)) Then Cells(r, 15) = Null Else Cells(r, 15) = Application.VLookup(Cells(r, 4), AccChart2, 2, False) End If I think this is what you are trying to do -- tony h ------------------------------------------------------------------------ tony h's Profile: http://www.excelforum.com/member.php...o&userid=21074 View this thread: http://www.excelforum.com/showthread...hreadid=392467 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to combine more than one condition for CONDITIONAL FORMATTING | Excel Discussion (Misc queries) | |||
Combine an OR condition with an AND condition | Excel Discussion (Misc queries) | |||
How to delete lines programmatically if a condition is met? | Excel Discussion (Misc queries) | |||
"how to combine multiple lines into a pull down option?" | Excel Worksheet Functions | |||
How to combine lines of code? | Excel Programming |