Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default automatically change the worksheet reference when new sheet ad

Hi,

I understand that you want to add up all the new sheets which you keep
adding. For that you have to simply insert the new sheet between the first
sheet and the last sheet. Try it - it works.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Damon Stennett" wrote in message ...
This looks like the solution I need as well, but all I am getting is a
#REF! error.

This is the base formula I want and I have tested and it works.
=sum(worksheet1:worksheet5!H30)

What I want to do is have worksheet5 update every time I add a new sheet.
So I used your idea and have successfully created the module in VB and
then put in a cell(E29) this: ="worksheet1:"&lastsheet()&"H30".

This results in E29 being populated with worksheet1:worksheet5!H30. In
another cell I put =sum(indirect(E29)) and I get #REF! I tried naming cell
E29 and using the name in the formula, but got the same result. When I
evaluate the formula it shows that it is evaluating E29 before the
indirect function, so that when it gets to the function it is actually
evaluating as INDIRECT(worksheet1:worksheet5!H30). That shouldn't happen,
should it?

thanks,
Damon


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 to change a reference when the sheet change the folder? WonderOlga Excel Worksheet Functions 2 January 3rd 08 09:19 PM
Automatically change cell reference? Balzyone Excel Discussion (Misc queries) 4 April 10th 07 09:44 AM
Automatically change reference cell each month Balzyone Excel Discussion (Misc queries) 1 April 4th 07 06:14 PM
Automatically change tab reference TWC Excel Discussion (Misc queries) 2 February 2nd 05 10:17 PM
Change workbook sheet reference using cell A1 to change a vairable Reed Excel Worksheet Functions 4 January 20th 05 07:15 PM


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