Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
set rng = Columns(10).SpecialCells(xlconstants,xlNumbers)
for each cell in rng if isempty(cell.offset(0,-2)) then cell.offset(0,-1).Value = "ABCD" end if Next if column J contains formulas, then change xlConstants to xlformulas -- regards, Tom Ogilvy "Jeff Fink" wrote in message ... I need help with the syntax of the macro. I will explain what I am trying to do: When Column J = 1 and Column H is (blank) enter "Text" into Column H Most of Column H when Column J = 1 is filled in, but for the ones that are blank I want to automatically enter text into that cell. Thanks, Jeff Fink |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Inserting the same text in various cells | Excel Discussion (Misc queries) | |||
Inserting text from external file into cells. | Excel Discussion (Misc queries) | |||
Inserting an Item into cells with text | Excel Worksheet Functions | |||
Inserting text into numerous cells for many different files | Excel Discussion (Misc queries) | |||
Inserting line breaks into merged text cells. | Excel Discussion (Misc queries) |