LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Null statement

How do you set the commands that if the activecell is null
or blank, it carries out certain commands? This is the
syntax I have right now, but the null command doesn't seem
to be working correctlly. Please help, thank you.

If ActiveCell Is Null Then

Selection.AutoFill Destination:=Range(Cells("33",
ActiveCell.Column - 1), Cells("33", ActiveCell.Column)),
Type:=xlFillDefault
Range("B30").End(xlToRight).Select
ActiveCell.Offset(rowOffset:=6, columnOffset:=-1).Select
Range(Cells("36", ActiveCell.Column - 1), Cells("40",
ActiveCell.Column - 1)).Select
Selection.AutoFill Destination:=(Range(Cells("36",
ActiveCell.Column - 1), Cells("40",
ActiveCell.Column)).Select), Type:=xlFillDefault

End If
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to save table attributes of (null) into (null). Luca Brasi Excel Discussion (Misc queries) 2 February 4th 09 04:30 PM
If statement that outputs specific text if cell is not null mcmilja Excel Discussion (Misc queries) 2 June 4th 08 02:26 PM
COUNTIF says Null = Blank but Blank < Null Epinn Excel Worksheet Functions 4 October 25th 06 08:03 PM
if a1 = null then a1 = b1...how do I do this? tomas Excel Discussion (Misc queries) 1 April 19th 06 06:04 PM
cell value based on null/not null in another cell spence Excel Worksheet Functions 1 February 18th 06 11:49 PM


All times are GMT +1. The time now is 07:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"