Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Apply a macro to all sheets - save me from hours and hours of

Okay, I will have a word with myself and see if I can get one <vbg

Bob

"Excel'ed Failures" wrote in
message ...
Bob, as always thank you. You really saved my bacon! This job would have
taken me all morning and to do and now I am finished. I love the, "How

are
you already finished!" reaction I got. Where ever you work Mr. Phillips

you
need a raise!

"Bob Phillips" wrote:

For Each sh In Activeworkbook.Worksheets
... your code
Next sh

and in you code change Activesheet to sh.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Excel'ed Failures" wrote in
message ...
Hello everyone, thank you for all your help! You guys are wonderful.

I
have
a new challange that I am faced with, a rather tedious one at that. I

have a
workbook that has 50+ worksheets. I need to change the print margins

to 0
as
well as the page orientation to portrait on every page. I can't

program
VBE
but I recorded a macro that does what I need it to. I deleted all the

stuff
I didn't need and it works. However it only works on the worksheet

that
is
open. What code do I add to make it cycle through every worksheet? I

don't
know how to program in VBE so please keep it simple. Thank you for

your
help
in advance... I owe you guys a beer.






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
Converting work hours to day/hours/minutes WxmanPrice Excel Discussion (Misc queries) 3 October 20th 09 03:08 PM
Determining work hours between dates / hours Andrew Excel Worksheet Functions 3 July 30th 08 06:38 PM
wages - multiply hours and minutes by number of hours worked Carol (Australia) Excel Discussion (Misc queries) 6 April 1st 07 01:16 AM
Drivers Hours Timesheet - Calculate Hours Worked on Weekly Basis Graham Excel Discussion (Misc queries) 2 January 28th 07 08:40 PM
HELP. Can this be done easily? Save me HOURS of work. Mr B[_3_] Excel Programming 12 April 23rd 04 03:30 PM


All times are GMT +1. The time now is 05:30 PM.

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"