Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Performing actions on multiple worksheets

Hi,

I would like to add the functionality to select any number of
worksheets in my workbook and then make small changes to the footer of
each page.

The code to change the footer is no problem, but i can't work out how
to get Excel to perform this code on multiple worksheets. There needs
to be the ability to select random numbers of worksheets, for example
sometimes i want to select sheets 1,2 and 6; other time i may want to
select sheers 2,3,6,8 and 23.

Can anyone think of a way in which this can be achieved.

Many thanks,
Chris

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Performing actions on multiple worksheets

Dim sh as object
for each sh in Application.ActiveWindow.SelectedSheets
sh.PageSetup.LeftFooter = "ABCD"
Next

--
Regards,
Tom Ogilvy

wrote in message
ups.com...
Hi,

I would like to add the functionality to select any number of
worksheets in my workbook and then make small changes to the footer of
each page.

The code to change the footer is no problem, but i can't work out how
to get Excel to perform this code on multiple worksheets. There needs
to be the ability to select random numbers of worksheets, for example
sometimes i want to select sheets 1,2 and 6; other time i may want to
select sheers 2,3,6,8 and 23.

Can anyone think of a way in which this can be achieved.

Many thanks,
Chris



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
Undo multiple actions Rachel Excel Discussion (Misc queries) 1 December 11th 06 08:35 PM
Cell Size Between Worksheets when performing a copy and paste Kara Excel Discussion (Misc queries) 1 October 27th 06 04:08 AM
Performing a multiple column lookup JDay Excel Discussion (Misc queries) 1 December 1st 05 08:34 PM
Performing codes on different worksheets Darren[_8_] Excel Programming 2 September 30th 04 03:36 AM
Actions on certain Worksheets Grant Reid Excel Programming 5 May 10th 04 02:45 PM


All times are GMT +1. The time now is 10:19 PM.

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

About Us

"It's about Microsoft Excel"