PC Review


Reply
Thread Tools Rate Thread

check if any cell in column A has text

 
 
jjnotme
Guest
Posts: n/a
 
      8th Mar 2008
I need to check if any cell in column A has text, if it does, then
bold the whole row, and inset a row under it.

Thank you.

Carol
 
Reply With Quote
 
 
 
 
GTVT06
Guest
Posts: n/a
 
      8th Mar 2008
On Mar 8, 1:31*pm, jjnotme <j...@notme.com> wrote:
> I need to check if any cell in column A has text, if it does, then
> bold the whole row, and inset a row under it.
>
> Thank you.
>
> Carol


Try this:

Sub TEST()
Dim cell As Range
For Each cell In Range("A1:A65536")
If Application.WorksheetFunction.IsText(cell.Value) Then
cell.EntireRow.Font.Bold = True
Rows(cell.Offset(1, 0).Row).Insert shift:=xlDown
Else
End If
Next cell
End Sub
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Check cell column A and add 1 to cell of column D by using Macro tlee Microsoft Excel Programming 12 1st Jul 2009 01:16 PM
I want to put the text in the cell of column B in front of the the text in column D. bartman1980 Microsoft Excel Programming 4 13th Aug 2007 02:06 PM
Putting check marks in every cell in a column? nickravo Microsoft Excel Worksheet Functions 7 8th Aug 2006 06:44 PM
Use of '=AND( COUNTIF(A:A, B1))' to check if a cell is in a column or range sillyhat@yahoo.com Microsoft Excel Discussion 2 23rd May 2006 08:20 PM
check active cell column =?Utf-8?B?S2ltUi5IYW1tZWw=?= Microsoft Excel Programming 2 10th Aug 2005 09:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:27 AM.