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: 30
Default activate macro by values in a column

Hi there
I have a macro that fomats columns in an active row. In column "R" I have a
formula that returns the value of 2 if the condition is true. I want to write
a macro that will find the 2(s) in column R and run my formating macro.

Heres my formatting macro
'Range("C" & ActiveCell.Row, ActiveCell.Offset(0, 10)).Select
'Let r = ActiveCell.Row
Range("C" & ActiveCell.Row & ":M" & ActiveCell.Row).Select
With Selection.Interior
.ColorIndex = 37
.Pattern = xlSolid
End With
Selection.Font.ColorIndex = 3
Selection.Font.Bold = True
Range("R" & ActiveCell.Row).Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone,
SkipBlanks _
:=False, Transpose:=False
Range("H" & ActiveCell.Row).Select
Selection.ClearContents
Thanks for your time
 
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
macro to change multiple values in a column mrwawa Excel Discussion (Misc queries) 7 July 2nd 06 04:35 PM
Need a Macro that will sum Values in a Column that are red havocdragon Excel Programming 9 October 15th 04 02:14 PM
macro to transpose cells in Column B based on unique values in Column A Aaron J. Excel Programming 3 October 8th 04 02:29 PM
How to activate the cell in same row, column 1? Sam Sieger Excel Programming 4 February 15th 04 01:07 AM
Transfer values from column to row using macro! aiyer Excel Programming 1 February 12th 04 12:21 AM


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