Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default perform the same calculation in several spreadsheets

Hello;



i have several sheets in a work book. the sheets names that i am
intersted in using are 20, 25,30,40,45, 55..... . there are other
sheets with names like 20S, 20R..... the ones that i want to apply
the calculations in are the ones that have numbers only. i would like
to be able to perform certain calculations in sheet 20, then perform
the same calculation in sheet 25 and so on. how could i write the code
for it? Thanks very much!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 411
Default perform the same calculation in several spreadsheets

If the sheets are formatted identically, you could select the sheets
and enter the formula. This enters the formula in all sheets selected.

If that's no good, please describe your need with more detail.

Dan
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default perform the same calculation in several spreadsheets

On Jan 17, 11:32*am, dan dungan wrote:
If the sheets are formatted identically, you could select the sheets
and enter the formula. This enters the formula in all sheets selected.

If that's no good, please describe your need with more detail.

Dan


hello Dan,

i wrote a code that will perform some calculations . i have several
sheets in this book, and the names could be 20, 20s , 20R, 30,30s,
30R..... and so on. i want to execute the code i wrote inside all
sheets that have have a name like 20,30,40,45,...... . i dont want to
execute this code in sheets that has a name that include letters like
20s, or 20R, or 40s.....
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default perform the same calculation in several spreadsheets

sub EveryCertainSheet()

dim ws as worksheet
for each ws in worksheets
if isnumeric(ws.name) then call YourMacro
next ws

end sub

" wrote:

On Jan 17, 11:32 am, dan dungan wrote:
If the sheets are formatted identically, you could select the sheets
and enter the formula. This enters the formula in all sheets selected.

If that's no good, please describe your need with more detail.

Dan


hello Dan,

i wrote a code that will perform some calculations . i have several
sheets in this book, and the names could be 20, 20s , 20R, 30,30s,
30R..... and so on. i want to execute the code i wrote inside all
sheets that have have a name like 20,30,40,45,...... . i dont want to
execute this code in sheets that has a name that include letters like
20s, or 20R, or 40s.....

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
How do I perform calculation within IF statement? Steven Masterson Excel Worksheet Functions 4 December 15th 08 08:13 AM
Perform a calculation on same cell across many worksheets Pat Adams Excel Worksheet Functions 1 July 7th 08 11:34 PM
How to perform matrix calculation in excel? Eric Excel Discussion (Misc queries) 1 May 28th 07 02:15 AM
comparing two columns & then perform a calculation dazp1970 Excel Worksheet Functions 2 September 10th 05 01:17 PM
perform calculation only if current time is after 10 am julieskennels Excel Worksheet Functions 7 July 18th 05 08:07 PM


All times are GMT +1. The time now is 11:01 AM.

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"