Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy data & format to mutiple sheets

hi

i have a format in a sheet. i want to copy the format to all the othe
sheets in the workbook. i want a macro for this.

yes, i could select all the sheets and paste...but the sheet names kee
varying daily....

thanks a lot in advanc

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default copy data & format to mutiple sheets

AS requested

Sub CopyFormats()
Dim sOriginal
Dim sh As Worksheet

sOriginal = ActiveSheet.Name
Cells.Copy
For Each sh In Worksheets
If sh.Name < sOriginal Then
sh.Cells.PasteSpecial Paste:=xlFormats, _
Operation:=xlNone, _
SkipBlanks:=False, _
Transpose:=False
End If
Next sh

End Sub

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"rvik " wrote in message
...
hi

i have a format in a sheet. i want to copy the format to all the other
sheets in the workbook. i want a macro for this.

yes, i could select all the sheets and paste...but the sheet names keep
varying daily....

thanks a lot in advance


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy data & format to mutiple sheets

bob,

i am a bit novice on the vba coding.what do i do with the code?

sorry, if i am troubling a lot......but .....

can u pls guide me?


---
Message posted from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default copy data & format to mutiple sheets

bob,

i got it running..

but i want to copy only the format in a range of cells to the sheets in
the workbook..

the code copies the entire worsheet format into the other sheets. ALso
the data within then range is also to be copied.

i have got a table with headers, and formulas like sum, count

thanks


---
Message posted from http://www.ExcelForum.com/

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default copy data & format to mutiple sheets

What range do you want to copy, and do you want it to the same place on
other sheets(e.g. G10:L55 -G10:L55), or somewhere else (e.g.
G10:L55-A1:F46)?

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"rvik " wrote in message
...
bob,

i got it running..

but i want to copy only the format in a range of cells to the sheets in
the workbook..

the code copies the entire worsheet format into the other sheets. ALso
the data within then range is also to be copied.

i have got a table with headers, and formulas like sum, count

thanks


---
Message posted from http://www.ExcelForum.com/



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
synchronizing mutiple sheets to mirror the previous data FEMoore Excel Discussion (Misc queries) 0 October 10th 10 03:49 PM
Running mutiple excel sheets on mutiple computers Lost Excel Discussion (Misc queries) 3 January 16th 09 12:32 AM
move or copy sheets doesn't copy format ColinX Excel Worksheet Functions 1 May 14th 08 10:07 PM
Mutiple Spread Sheets ABA Excel Worksheet Functions 0 May 13th 08 10:10 PM
Copy rows of one sheet into mutiple sheets based on column value Wesley Breshears Excel Discussion (Misc queries) 0 October 18th 06 03:19 PM


All times are GMT +1. The time now is 02:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"