Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2003: Keeps applying auto-font settings I don't want | Excel Discussion (Misc queries) | |||
how do I change default settings for Comments (its font, etc.) | Excel Discussion (Misc queries) | |||
Change permanantly default chart settings like colour, font.. | Charts and Charting in Excel | |||
Comment Box Font Settings | Excel Discussion (Misc queries) | |||
Font settings in Excel | Excel Programming |