Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Loop down rows to first non-bold entry

Michael,

Sub Example2()
Dim myCell As Range
For Each myCell In Columns("C:C").SpecialCells(xlCellTypeConstants, 1)
If myCell.Font.Bold Then myCell(1, 2).Value = "This is a bold number"
Next myCell
End Sub

HTH,
Bernie
MS Excel MVP

"Michael McClellan" wrote in message
m...
OK Gentlemen,

I think I need to change my strategy a bit. I actually need to loop
down to the first non-bold entry. All the data I don't need is bold
for some reason.

Any ideas?


"Bernie Deitrick" <deitbe @ consumer dot org wrote in message

...
Michael,

You can use the special cells method: the example below will put "This

is a
number" into the adjacent cell in column D for every number in column C.

Note that the "xlCellTypeConstant" means that the numbers are actual
constants, not the values returned by formulas, which would require
"xlCellTypeFormulas" instead.

HTH,
Bernie
MS Excel MVP


Sub Example()
Dim myCell As Range
For Each myCell In Columns("C:C").SpecialCells(xlCellTypeConstants, 1)
myCell(1, 2).Value = "This is a number"
Next myCell
End Sub

"Michael McClellan" wrote in message
m...
I'm looking to build a macro that will loop down rows and then stop
and the first numerical character, modify some adjacent cells, then
move on to the next numerical character.

Does anybody have a clue?



Reply
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
Automatically put rows containing a number in numerical order Mally Excel Discussion (Misc queries) 2 September 12th 08 02:34 PM
How to change rows, columns to alpha numerical KPM Excel Discussion (Misc queries) 2 May 23rd 07 09:38 AM
How to enter numerical numbers in rows where value is same Ann Excel Worksheet Functions 7 January 23rd 06 10:49 PM
Numerical grade to Alpha character capecrusader Excel Discussion (Misc queries) 6 August 20th 05 02:02 PM
How to randomely distribute non-numerical values across rows? Dimmer Excel Worksheet Functions 3 June 30th 05 08:26 AM


All times are GMT +1. The time now is 09:04 AM.

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"