ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Use VBA to format paint cell(s) (https://www.excelbanter.com/excel-programming/342570-use-vba-format-paint-cell-s.html)

[email protected]

Use VBA to format paint cell(s)
 
Is it possible to make the formatting of a target cell the same as some
source cell - like through the use of the toolbar "format painter"?

If not what's the best way to go about replicating formatting from one cell
to another?

Thanks in advance for any ideas you have.
Charles

Bob Phillips[_6_]

Use VBA to format paint cell(s)
 
It can be, but why not just use the format painter?

--
HTH

Bob Phillips

" wrote in
message ...
Is it possible to make the formatting of a target cell the same as some
source cell - like through the use of the toolbar "format painter"?

If not what's the best way to go about replicating formatting from one

cell
to another?

Thanks in advance for any ideas you have.
Charles




[email protected]

Use VBA to format paint cell(s)
 
Among many other things I'm programatically adding values to cells in some
worksheets that need to match existing formatting...

"Bob Phillips" wrote:

It can be, but why not just use the format painter?

--
HTH

Bob Phillips

" wrote in
message ...
Is it possible to make the formatting of a target cell the same as some
source cell - like through the use of the toolbar "format painter"?

If not what's the best way to go about replicating formatting from one

cell
to another?

Thanks in advance for any ideas you have.
Charles





Dave Peterson

Use VBA to format paint cell(s)
 
Record a macro when you do Edit|copy, edit|paste special|Formats

And you'll see the code you'd use.

wrote:

Among many other things I'm programatically adding values to cells in some
worksheets that need to match existing formatting...

"Bob Phillips" wrote:

It can be, but why not just use the format painter?

--
HTH

Bob Phillips

" wrote in
message ...
Is it possible to make the formatting of a target cell the same as some
source cell - like through the use of the toolbar "format painter"?

If not what's the best way to go about replicating formatting from one

cell
to another?

Thanks in advance for any ideas you have.
Charles





--

Dave Peterson


All times are GMT +1. The time now is 10:16 AM.

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