ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Copy format of cell from other worksheet (https://www.excelbanter.com/excel-discussion-misc-queries/200774-copy-format-cell-other-worksheet.html)

sirjibby

Copy format of cell from other worksheet
 
When you tell a cell to display the contents of a cell from another worksheet
(eg. if in a cell from Sheet2 I put the formula ='Sheet1'!A1), how do you
also get it to use the formatting of that cell?

Thanks in advance for looking!

Dave Peterson

Copy format of cell from other worksheet
 
Formulas don't return this kind of formatting. They return values.

You could copy|paste or have a macro do it.

sirjibby wrote:

When you tell a cell to display the contents of a cell from another worksheet
(eg. if in a cell from Sheet2 I put the formula ='Sheet1'!A1), how do you
also get it to use the formatting of that cell?

Thanks in advance for looking!


--

Dave Peterson

sirjibby

Copy format of cell from other worksheet
 
Ok thanks for letting me know. Could you possibly explain quickly how I would
get a macro to do that?

"Dave Peterson" wrote:

Formulas don't return this kind of formatting. They return values.

You could copy|paste or have a macro do it.

sirjibby wrote:

When you tell a cell to display the contents of a cell from another worksheet
(eg. if in a cell from Sheet2 I put the formula ='Sheet1'!A1), how do you
also get it to use the formatting of that cell?

Thanks in advance for looking!


--

Dave Peterson


Gord Dibben

Copy format of cell from other worksheet
 
As quickly as you can record yourself doing the copy then Paste
SpecialPaste links and Paste SpecialFormats.


Gord Dibben MS Excel MVP

On Fri, 29 Aug 2008 15:20:00 -0700, sirjibby
wrote:

Ok thanks for letting me know. Could you possibly explain quickly how I would
get a macro to do that?

"Dave Peterson" wrote:

Formulas don't return this kind of formatting. They return values.

You could copy|paste or have a macro do it.

sirjibby wrote:

When you tell a cell to display the contents of a cell from another worksheet
(eg. if in a cell from Sheet2 I put the formula ='Sheet1'!A1), how do you
also get it to use the formatting of that cell?

Thanks in advance for looking!


--

Dave Peterson



Dave Peterson

Copy format of cell from other worksheet
 
On top of what Gord suggested, you could have an event macro that runs that does
the copy|Paste.

But you'd have to share how the "sending" cell changed--is it because the user
typed something, or is it because the formula got reevaluated?

And if you're sharing this, share the details of what cells are sending cells
and what cells are the corresponding receiving cells.

sirjibby wrote:

Ok thanks for letting me know. Could you possibly explain quickly how I would
get a macro to do that?

"Dave Peterson" wrote:

Formulas don't return this kind of formatting. They return values.

You could copy|paste or have a macro do it.

sirjibby wrote:

When you tell a cell to display the contents of a cell from another worksheet
(eg. if in a cell from Sheet2 I put the formula ='Sheet1'!A1), how do you
also get it to use the formatting of that cell?

Thanks in advance for looking!


--

Dave Peterson


--

Dave Peterson


All times are GMT +1. The time now is 11:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com