LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default Macro to run on all files in a folder but exclude sheets withPivot Table, Pivot Charts and Charts

You need all the code (macros - as they're interdependant) as
elegantly written by Clif. The one that you need to launch it this:

ScanWorkbooks

It'll loop through the files and do what you need with the files.



On Mar 7, 11:58*am, Nasir wrote:
On Mar 6, 5:15*am, "Clif McIrvin" wrote:





"Clif McIrvin" wrote in message


...


I just took another look at your recorded macro and I'm not certain it
was doing what you want as you posted it. Replace what I posted with
this:


Option Explicit


Sub FormatWorksheet(sh As Worksheet)
'
* * With sh.Cells.Font
* * * * .Name = "Trebuchet MS"
* * * * .Size = 11
* * * * .Strikethrough = False
* * * * .Superscript = False
* * * * .Subscript = False
* * * * .OutlineFont = False
* * * * .Shadow = False
* * * * .Underline = xlUnderlineStyleNone
* * * * .ThemeColor = xlThemeColorLight1
* * * * .TintAndShade = 0
* * * * .ThemeFont = xlThemeFontNone
* * End With


* * With sh.Rows("1:1")
* * * * .Font.Bold = True
* * * * With .Cells.Interior
* * * * * .Pattern = xlSolid
* * * * * .PatternColorIndex = xlAutomatic
* * * * * .Color = 65535
* * * * * .TintAndShade = 0
* * * * * .PatternTintAndShade = 0
* * * * End With
* * End With


* * sh.Cells.EntireColumn.AutoFit
* * sh.Range("A1").Select


End Sub


--
Clif McIrvin


(clare reads his mail with moe, nomail feeds the bit bucket :-)


I cannot make it work
There are three differenct macros now..
I wanted to have one macro for my purpose..pardon my ignorance please

Nasir- Hide quoted text -

- Show quoted text -


 
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
Macro to group data in pivot charts MichaelR Excel Programming 0 June 16th 08 10:37 PM
pie charts automatically exclude zero values Cris[_2_] Charts and Charting in Excel 1 March 4th 08 02:43 AM
PivotTable Charts Joey Excel Discussion (Misc queries) 1 February 12th 08 11:30 AM
charts exclude cell with formula linda Charts and Charting in Excel 0 September 19th 07 05:12 AM
macro for printing pivot charts marina madeleine Excel Programming 0 October 15th 04 02:03 PM


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