Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm inserting a worksheet, and that worksheet is from a template file. So the code looks like
Set wks = ThisWorkbook.Worksheets.Add(NextSheet, , , "C:\MyTemplate.xlt" This works well except for one thing: formulas in this new sheet that refer to named ranges give a #NAME error. If I click my mouse in the formula editor and press <Enter, magically the formula resolves properly. I've tried using Worksheet.Calculate and Application.Calculate, but they don't make any difference. Is there a way I can force these formulas to calcualate from code I doesn't matter if the range is defined locally to the sheet or globally to the workbook Thanks James |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Template;insert a page | Excel Discussion (Misc queries) | |||
How do I insert template in new sheet of pre-existing excel file? | Excel Worksheet Functions | |||
Select and Insert one sheet from a multisheet excel template | Excel Discussion (Misc queries) | |||
Insert Rows in Balance Sheet Template | New Users to Excel | |||
Inserting a row in sheet A should Insert a row in sheet B, removing a row in Sheet A should remove the corresponding row in sheet B | Excel Programming |