Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Copy Worksheet Formula Problem

I am coping a worksheet (in the same workbook) and then renaming the sheet
all in vba code. There are formulas on the source sheet, and copied sheet,
that point to a third sheet. The problem is that my formulas do not update
when I change data on a third sheet.

I tried coping the sheet then reentering the formula, in VBA, but that does
not work either.

Note that application calculation is turn to automatic

Any thoughts?

Thanks in advance,

Stewart

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Copy Worksheet Formula Problem

Do you turn auto-calculation off prior to copying the worksheet? Then back on
again? Do the formulas work on the sheet you copy before the VBA is executed?
How about after? Are the formulas longer than 127 characters? Is the sheet
you are copying protected when you copy it? Have you tried "F9"?

Dale Preuss



"Datasort" wrote:

I am coping a worksheet (in the same workbook) and then renaming the sheet
all in vba code. There are formulas on the source sheet, and copied sheet,
that point to a third sheet. The problem is that my formulas do not update
when I change data on a third sheet.

I tried coping the sheet then reentering the formula, in VBA, but that does
not work either.

Note that application calculation is turn to automatic

Any thoughts?

Thanks in advance,

Stewart

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Copy Worksheet Formula Problem

First off thanks for your reply
Secondly ... here are your questions answered


Reply of not an issues:

autocalc is always set to true ... never turned off or on
Formulas work before the copy
formulas are less that 127 characters
Trying F9 does not resolve issue

Reply WITH issue:

The source copy sheet is protected when copied .. specifically the cells
that the formulas are coming from. Protection is then turned off and the
formulas are being replaced ... ie ... cells(10,10).formula = "='Sheet1'!a10.
Then cell protection is turned on.



"Dale Preuss" wrote:

Do you turn auto-calculation off prior to copying the worksheet? Then back on
again? Do the formulas work on the sheet you copy before the VBA is executed?
How about after? Are the formulas longer than 127 characters? Is the sheet
you are copying protected when you copy it? Have you tried "F9"?

Dale Preuss



"Datasort" wrote:

I am coping a worksheet (in the same workbook) and then renaming the sheet
all in vba code. There are formulas on the source sheet, and copied sheet,
that point to a third sheet. The problem is that my formulas do not update
when I change data on a third sheet.

I tried coping the sheet then reentering the formula, in VBA, but that does
not work either.

Note that application calculation is turn to automatic

Any thoughts?

Thanks in advance,

Stewart

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Copy Worksheet Formula Problem

Try turning the protection off of the source worksheet before copying it.
When a worksheet is protected, the formulas don't travel, just the values.

Dale


"Datasort" wrote:

First off thanks for your reply
Secondly ... here are your questions answered


Reply of not an issues:

autocalc is always set to true ... never turned off or on
Formulas work before the copy
formulas are less that 127 characters
Trying F9 does not resolve issue

Reply WITH issue:

The source copy sheet is protected when copied .. specifically the cells
that the formulas are coming from. Protection is then turned off and the
formulas are being replaced ... ie ... cells(10,10).formula = "='Sheet1'!a10.
Then cell protection is turned on.



"Dale Preuss" wrote:

Do you turn auto-calculation off prior to copying the worksheet? Then back on
again? Do the formulas work on the sheet you copy before the VBA is executed?
How about after? Are the formulas longer than 127 characters? Is the sheet
you are copying protected when you copy it? Have you tried "F9"?

Dale Preuss



"Datasort" wrote:

I am coping a worksheet (in the same workbook) and then renaming the sheet
all in vba code. There are formulas on the source sheet, and copied sheet,
that point to a third sheet. The problem is that my formulas do not update
when I change data on a third sheet.

I tried coping the sheet then reentering the formula, in VBA, but that does
not work either.

Note that application calculation is turn to automatic

Any thoughts?

Thanks in advance,

Stewart

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
Excel 2007 Copy Worksheet Problem webermis Excel Discussion (Misc queries) 0 February 23rd 10 04:38 PM
Worksheet copy problem - local names Jack Sheet Excel Discussion (Misc queries) 2 December 2nd 04 10:02 AM
Worksheet copy problem Jac Tremblay Excel Programming 3 May 29th 04 10:56 AM
worksheet copy problem dan Excel Programming 1 January 24th 04 02:26 AM
worksheet copy problem jim apostolidis Excel Programming 1 October 16th 03 01:38 PM


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