Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Range to echo format (hilite/fontcolors) of sister range?

MS XL2007: Is there an efficient way to embed "color of cell RnCm = color of
cell RnC(m-x)" where c1 rows are manually changed from time to time? So that
a cousin cell a few rows over automatically reflects a hilite/font color
change manually applied to the the corresponding row in the first column?
Data in both columns is text/general. Obviously copy/paste-format would do
it inelegantly, a macro could presumably lookup & apply color somehow (still
a bit clunky), but I seek a formulaic/automatic method.

Schooner
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Range to echo format (hilite/fontcolors) of sister range?

Here is an event macro for cells A1 and B1. If you change the format of cell
A1 and select another cell, then the format of A1 will be copied over to B1:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Set r = Range("A1")
If Intersect(r, Target) Is Nothing Then
Application.EnableEvents = False
Range("A1").Copy
Range("B1").PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Target.Select
Application.EnableEvents = True
End If
End Sub

--
Gary''s Student - gsnu200769


"Schooner" wrote:

MS XL2007: Is there an efficient way to embed "color of cell RnCm = color of
cell RnC(m-x)" where c1 rows are manually changed from time to time? So that
a cousin cell a few rows over automatically reflects a hilite/font color
change manually applied to the the corresponding row in the first column?
Data in both columns is text/general. Obviously copy/paste-format would do
it inelegantly, a macro could presumably lookup & apply color somehow (still
a bit clunky), but I seek a formulaic/automatic method.

Schooner

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Range to echo format (hilite/fontcolors) of sister range?

Thanks, playing with it, have to fiddle it a bit (don't want to carry over
stocksymbol subscripts to text column, just b/g color, will "backtrack" the
transfer by adding unbold).

Thanks for assist -

Schooner

"Gary''s Student" wrote:

Here is an event macro for cells A1 and B1. If you change the format of cell
A1 and select another cell, then the format of A1 will be copied over to B1:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Set r = Range("A1")
If Intersect(r, Target) Is Nothing Then
Application.EnableEvents = False
Range("A1").Copy
Range("B1").PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Target.Select
Application.EnableEvents = True
End If
End Sub

--
Gary''s Student - gsnu200769


"Schooner" wrote:

MS XL2007: Is there an efficient way to embed "color of cell RnCm = color of
cell RnC(m-x)" where c1 rows are manually changed from time to time? So that
a cousin cell a few rows over automatically reflects a hilite/font color
change manually applied to the the corresponding row in the first column?
Data in both columns is text/general. Obviously copy/paste-format would do
it inelegantly, a macro could presumably lookup & apply color somehow (still
a bit clunky), but I seek a formulaic/automatic method.

Schooner

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
Name Range Format David T Excel Discussion (Misc queries) 2 October 27th 07 08:06 PM
Excel Addin:Setting the range to the Excel.Range object range prop Rp007 Excel Worksheet Functions 5 November 24th 06 04:30 PM
how do i format a cell based on format of a range of cells? Chris Hardick Excel Discussion (Misc queries) 2 April 3rd 06 08:54 AM
cond. format for hilite every 200 lines nastech Excel Discussion (Misc queries) 3 February 3rd 06 11:43 AM
cond. format for hilite every 200 lines Max Excel Discussion (Misc queries) 0 February 3rd 06 11:20 AM


All times are GMT +1. The time now is 12:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"