how to copy font settings

  • Thread starter Thread starter dadospartacus
  • Start date Start date
D

dadospartacus

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.
 
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
 
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.
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top