#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default worksheet help

I am working on a 20 page worksheet and I need data copied from worksheet 1
to 2 -3 etc. I know the formula to copy from sheet 1 to sheet 2
((=week1!m35) .
What I wish to know is when I copy work sheets the formula on worksheet 5 is
still copied from worksheet 1 .Can anyone tell me a formula that will copy
and upgrade the formula,so that W/S 2 copies W/S 1,W/S 3 copies W/S2 etc.
Thanks in advance





---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 000774-7, 15/09/2007
Tested on: 6/01/2008 9:52:06 AM
avast! - copyright (c) 1988-2008 ALWIL Software.
http://www.avast.com



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default worksheet help

Copy paste this function into a REGULAR module of your workbook. Then in any
sheet use
=prevsheet(a1)

Function PrevSheet(rg As Range)
n = Application.Caller.Parent.Index
If n = 1 Then
PrevSheet = 0
Exit Function
End If
PrevSheet = Sheets(Application.Caller _
.Parent.Index - 1).Range(rg.Address).Value
End Function

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Atty" wrote in message
...
I am working on a 20 page worksheet and I need data copied from worksheet 1
to 2 -3 etc. I know the formula to copy from sheet 1 to sheet 2
((=week1!m35) .
What I wish to know is when I copy work sheets the formula on worksheet 5
is
still copied from worksheet 1 .Can anyone tell me a formula that will copy
and upgrade the formula,so that W/S 2 copies W/S 1,W/S 3 copies W/S2 etc.
Thanks in advance





---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 000774-7, 15/09/2007
Tested on: 6/01/2008 9:52:06 AM
avast! - copyright (c) 1988-2008 ALWIL Software.
http://www.avast.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
plot graph from multiple worksheet as embedded chart object on every worksheet [email protected] Charts and Charting in Excel 3 August 24th 06 07:26 PM
plot graph from multiple worksheet as embedded chart object on every worksheet [email protected] Excel Discussion (Misc queries) 2 August 24th 06 05:26 PM
plot graph from multiple worksheet as embedded chart object on every worksheet [email protected] Excel Worksheet Functions 2 August 24th 06 05:26 PM
plot graph from multiple worksheet as embedded chart object on every worksheet jeftiong New Users to Excel 0 August 23rd 06 01:50 PM
Upload multiple text files into 1 excel worksheet + put the filename as the first column in the worksheet Aster Excel Worksheet Functions 3 March 12th 06 09:58 AM


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