Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default updating formula when a worksheet is added

What does "shift and quit working" mean?

Can you share a "before" formula and an "after" formula--even if it fails?

JakeShipley2008 wrote:

I have a workbook that I will add new sheets to. I have created a amacro that
will re-name all my worksheets to consectutive name e.g. CMM1, CMM2, CMM3,
and so on as I add the worksheets. The data I need to pull is always from the
same cells in each sheet. Normally I would pull it into the summary sheet
with =sheet1!A1 but when I add the new sheets the formulas shift and quit
working.

Note: I am not summarizing the data I need to pull it over by individual cells

Hopefully this makes sense I would appreciate any help you can offer.
--
Jake


--

Dave Peterson
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default updating formula when a worksheet is added

Before would be:

=CMM1!A1

After:

=#ref!A2

I know this happens becuase I am making sheet changes. I was wondering if
the is a way to make the sheet absolute similiar to A$1$ on a cell assignment
--
Jake


"Dave Peterson" wrote:

What does "shift and quit working" mean?

Can you share a "before" formula and an "after" formula--even if it fails?

JakeShipley2008 wrote:

I have a workbook that I will add new sheets to. I have created a amacro that
will re-name all my worksheets to consectutive name e.g. CMM1, CMM2, CMM3,
and so on as I add the worksheets. The data I need to pull is always from the
same cells in each sheet. Normally I would pull it into the summary sheet
with =sheet1!A1 but when I add the new sheets the formulas shift and quit
working.

Note: I am not summarizing the data I need to pull it over by individual cells

Hopefully this makes sense I would appreciate any help you can offer.
--
Jake


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default updating formula when a worksheet is added

If CMM1 doesn't exist then you'll see that error--but the formula will stay the
same.

I thought you said you started with other sheet names and renamed them to cmm1,
cmm2, ...

If you're trying to create a formula that doesn't return an error if the sheet
doesn't exist (kind of pre-building a bunch of formulas???), then how about
something like:

=IF(ISERROR(CELL("address",INDIRECT("'cmm0'!a1"))) ,"",INDIRECT("'cmm0'!x99"))

This will return "" if CMM0 isn't there--otherwise, it'll return the value in
x99 of cmm0.






JakeShipley2008 wrote:

Before would be:

=CMM1!A1

After:

=#ref!A2

I know this happens becuase I am making sheet changes. I was wondering if
the is a way to make the sheet absolute similiar to A$1$ on a cell assignment
--
Jake

"Dave Peterson" wrote:

What does "shift and quit working" mean?

Can you share a "before" formula and an "after" formula--even if it fails?

JakeShipley2008 wrote:

I have a workbook that I will add new sheets to. I have created a amacro that
will re-name all my worksheets to consectutive name e.g. CMM1, CMM2, CMM3,
and so on as I add the worksheets. The data I need to pull is always from the
same cells in each sheet. Normally I would pull it into the summary sheet
with =sheet1!A1 but when I add the new sheets the formulas shift and quit
working.

Note: I am not summarizing the data I need to pull it over by individual cells

Hopefully this makes sense I would appreciate any help you can offer.
--
Jake


--

Dave Peterson


--

Dave Peterson
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
Updating information in 1 file when it is added to other files Kyle Excel Discussion (Misc queries) 1 December 18th 09 03:18 PM
automatically appending newly added data on worksheet to a master list worksheet tabylee via OfficeKB.com Links and Linking in Excel 0 December 17th 09 04:24 PM
updating caption of added control [email protected] Excel Programming 3 January 24th 07 05:35 PM
Updating formula with link to another worksheet using vlookup Matt Links and Linking in Excel 3 August 12th 05 01:04 PM
Setting a formula with code in worksheet added KimberlyC Excel Programming 10 January 3rd 05 09:46 PM


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