Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate of cell

Status
Not open for further replies.

Fonzie

MIS
Feb 16, 2001
74
0
0
CA
Is there a way to run a macro or write a formula in Excel XP so a certain cell is an exact duplicate of another cell, formatting and coloring included? For example, D1 is always the same as A1 no matter what changes are made to A1.
 




Hi,

The Worksheet_Change event will fire any time a VALUE changes on the sheet.
Code:
   [A1].copy [D1]
CAVEAT: There is no event for FORMATS changing on a sheet.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Is there not a way to set the ColorIndex of a cell = ColorIndex of a different cell? If I can get the value of the cell and the fill color, that is all I really need.
 




If you tried the solution, you would see that the VALUE and the FORMATS are copied when the VALUE changes.

However, if you just change the FORMAT, there is no event to convey that change to the other cell.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top