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: 27,285
Default Inserting text to certain cells

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



 
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
Inserting the same text in various cells Josh W Excel Discussion (Misc queries) 4 April 24th 08 12:12 PM
Inserting text from external file into cells. warirv63 Excel Discussion (Misc queries) 0 April 16th 08 07:27 AM
Inserting an Item into cells with text Dolfan13net Excel Worksheet Functions 2 December 8th 07 05:41 AM
Inserting text into numerous cells for many different files joshua Excel Discussion (Misc queries) 4 December 29th 06 06:09 PM
Inserting line breaks into merged text cells. MrSafetyNeedshelp Excel Discussion (Misc queries) 1 August 11th 05 10:12 PM


All times are GMT +1. The time now is 12:06 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"