Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Kathrine J Wathne
 
Posts: n/a
Default Pick up format from another cell

I can make a function in a cell that picks up the content from another
cell - example =A3

However; this will only show the content, and not the format from A3.

How can I make a link that picks up BOTH the content + the format. (If the
content in A3 is blue; I want it to show in blue in the cell where =A3
stands). Is this possible??


  #2   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben
 
Posts: n/a
Default Pick up format from another cell

Kathrine

Formulas and Functions can return result only.

They cannot change or copy formatting.

If the content of A3 is blue due to Conditional Formatting, you can apply the
same CF to the target cell.


Gord Dibben MS Excel MVP

On Thu, 15 Jun 2006 23:19:28 +0200, "Kathrine J Wathne"
wrote:

I can make a function in a cell that picks up the content from another
cell - example =A3

However; this will only show the content, and not the format from A3.

How can I make a link that picks up BOTH the content + the format. (If the
content in A3 is blue; I want it to show in blue in the cell where =A3
stands). Is this possible??


  #3   Report Post  
Posted to microsoft.public.excel.misc
Kathrine J Wathne
 
Posts: n/a
Default Pick up format from another cell

OK. Thanks for helping - any other way to make this possible - not using a
function but something else?


"Gord Dibben" <gorddibbATshawDOTca skrev i melding
...
Kathrine

Formulas and Functions can return result only.

They cannot change or copy formatting.

If the content of A3 is blue due to Conditional Formatting, you can apply
the
same CF to the target cell.


Gord Dibben MS Excel MVP

On Thu, 15 Jun 2006 23:19:28 +0200, "Kathrine J Wathne"
wrote:

I can make a function in a cell that picks up the content from another
cell - example =A3

However; this will only show the content, and not the format from A3.

How can I make a link that picks up BOTH the content + the format. (If the
content in A3 is blue; I want it to show in blue in the cell where =A3
stands). Is this possible??




  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Pick up format from another cell

How does A3 change?

If it changes because the user typed something, you could use an event macro
that would copy that cell to the other cell.

Rightclick on the worksheet tab and select View code. Paste this in the new
code window:

Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)

'only one cell at a time!
If Target.Cells.Count 1 Then Exit Sub

If Intersect(Target, Me.Range("a3")) Is Nothing Then Exit Sub

Application.EnableEvents = False
Target.Copy _
Destination:=Me.Range("a5") 'some range
Application.EnableEvents = True

End Sub

Be aware that changing the format won't fire this event. You really have to
change the cell (or hit F2|Enter to pretend to change the cell).


Kathrine J Wathne wrote:

OK. Thanks for helping - any other way to make this possible - not using a
function but something else?

"Gord Dibben" <gorddibbATshawDOTca skrev i melding
...
Kathrine

Formulas and Functions can return result only.

They cannot change or copy formatting.

If the content of A3 is blue due to Conditional Formatting, you can apply
the
same CF to the target cell.


Gord Dibben MS Excel MVP

On Thu, 15 Jun 2006 23:19:28 +0200, "Kathrine J Wathne"
wrote:

I can make a function in a cell that picks up the content from another
cell - example =A3

However; this will only show the content, and not the format from A3.

How can I make a link that picks up BOTH the content + the format. (If the
content in A3 is blue; I want it to show in blue in the cell where =A3
stands). Is this possible??



--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Pick up format from another cell

Formulas can't do this kind of thing. They return values to the cell with the
formula.



Kathrine J Wathne wrote:

I can make a function in a cell that picks up the content from another
cell - example =A3

However; this will only show the content, and not the format from A3.

How can I make a link that picks up BOTH the content + the format. (If the
content in A3 is blue; I want it to show in blue in the cell where =A3
stands). Is this possible??


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default Pick up format from another cell

Let's say that cell C10 has the formula =A3 and we desire that whenever cell
A3 changes format, cell C10 will automatically do the same. Enter the
following in worksheet code:

Dim ping As Boolean
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("A3")) Is Nothing Then
If ping = False Then
Range("A3").Copy
Range("C10").PasteSpecial Paste:=xlPasteFormats
End If
ping = True
Exit Sub
Else
ping = False
End If
End Sub


Move to cell A3 (mouse or arrow keys). Change its format. Then move away
from A3. C10 will automatically pick up the new format.

REMEMBER: worksheet code !
--
Gary's Student


"Kathrine J Wathne" wrote:

I can make a function in a cell that picks up the content from another
cell - example =A3

However; this will only show the content, and not the format from A3.

How can I make a link that picks up BOTH the content + the format. (If the
content in A3 is blue; I want it to show in blue in the cell where =A3
stands). Is this possible??



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
conditional cell format based on cell in same row, previous column tamiluchi Excel Worksheet Functions 7 May 3rd 06 04:11 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Cell data format falloutx Excel Discussion (Misc queries) 1 February 10th 06 01:46 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
can't format cell - have tried unlocking and unprotecting griffin Excel Discussion (Misc queries) 1 April 5th 05 02:11 AM


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