Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default how to copy font settings

Anybody know how to write a vbscript that can copy font setting like size or
color from sheet1 to another sheet. Both sheets have the same information
on it so that if you change the font size on cell B2 on sheet1 the
corresponding cell on sheet2 would be the same. Hope this make sense and
somebody knows how to do this. Thanks for all your help.




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default how to copy font settings

Take a look at Format / Style

Sub sheetformat()
Dim ws As Worksheet
For Each ws In Worksheets
With ws.Cells
.Font.Size = 8
.Interior.ColorIndex = 24
' etc etc
End With
Next
End Sub


"dadospartacus" wrote:

Anybody know how to write a vbscript that can copy font setting like size or
color from sheet1 to another sheet. Both sheets have the same information
on it so that if you change the font size on cell B2 on sheet1 the
corresponding cell on sheet2 would be the same. Hope this make sense and
somebody knows how to do this. Thanks for all your help.





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default how to copy font settings

dadospartacus,
Does PasteSpecial Formats do it ?

NickHK

"dadospartacus" wrote in message
...
Anybody know how to write a vbscript that can copy font setting like size

or
color from sheet1 to another sheet. Both sheets have the same information
on it so that if you change the font size on cell B2 on sheet1 the
corresponding cell on sheet2 would be the same. Hope this make sense and
somebody knows how to do this. Thanks for all your help.






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default how to copy font settings

That does work but I would have to do that for 100 cells which is going to
take a long time. Wanted something that will automatically change sheet2
once the person make a font change on sheet1.


"NickHK" wrote in message
...
dadospartacus,
Does PasteSpecial Formats do it ?

NickHK

"dadospartacus" wrote in message
...
Anybody know how to write a vbscript that can copy font setting like size

or
color from sheet1 to another sheet. Both sheets have the same
information
on it so that if you change the font size on cell B2 on sheet1 the
corresponding cell on sheet2 would be the same. Hope this make sense and
somebody knows how to do this. Thanks for all your help.








  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default how to copy font settings

This does look like it will work but you would have to assign that to a
button right? Also it doesn't automatic detect that there was a font change
on sheet1 and auto make the change in sheet2.Thanks for your help.


"Patrick Molloy" wrote in message
...
Take a look at Format / Style

Sub sheetformat()
Dim ws As Worksheet
For Each ws In Worksheets
With ws.Cells
.Font.Size = 8
.Interior.ColorIndex = 24
' etc etc
End With
Next
End Sub


"dadospartacus" wrote:

Anybody know how to write a vbscript that can copy font setting like size
or
color from sheet1 to another sheet. Both sheets have the same
information
on it so that if you change the font size on cell B2 on sheet1 the
corresponding cell on sheet2 would be the same. Hope this make sense and
somebody knows how to do this. Thanks for all your help.









  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default how to copy font settings

dadospartacus,
If it's the same data and format, what about Link Picture ?

NickHK

"dadospartacus" wrote in message
...
That does work but I would have to do that for 100 cells which is going to
take a long time. Wanted something that will automatically change sheet2
once the person make a font change on sheet1.


"NickHK" wrote in message
...
dadospartacus,
Does PasteSpecial Formats do it ?

NickHK

"dadospartacus" wrote in message
...
Anybody know how to write a vbscript that can copy font setting like

size
or
color from sheet1 to another sheet. Both sheets have the same
information
on it so that if you change the font size on cell B2 on sheet1 the
corresponding cell on sheet2 would be the same. Hope this make sense

and
somebody knows how to do this. Thanks for all your help.










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
Excel 2003: Keeps applying auto-font settings I don't want Seb Thirlway Excel Discussion (Misc queries) 1 April 1st 10 04:01 PM
how do I change default settings for Comments (its font, etc.) bromm Excel Discussion (Misc queries) 1 April 16th 07 11:01 PM
Change permanantly default chart settings like colour, font.. utopian_sorceror Charts and Charting in Excel 2 September 19th 05 06:41 AM
Comment Box Font Settings armenthj Excel Discussion (Misc queries) 1 March 3rd 05 07:09 PM
Font settings in Excel Rachel gigi Excel Programming 0 July 20th 04 02:58 PM


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