Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In a macro I am copying a master worksheet to a new workbook. In some of the
cells of the master I have nested if statements with Vlookups. Sample: =IF(C9="","",IF(AND(TEXT(C9+90,"ddd")="Sat",ISERRO R(VLOOKUP(C9+92, Holidays!$A$1:$B$1000,2,FALSE))),C9+92,IF(TEXT(C9+ 90,"ddd")="Sat", C9+93,IF(AND(TEXT(C9+90,"ddd")="Sun",ISERROR(VLOOK UP(C9+91, Holidays!$A$1:$B$1000,2,FALSE))),C9+91,IF(TEXT(C9+ 90,"ddd")="Sun", C9+92,IF(ISERROR(VLOOKUP(C9+90,Holidays!$A1:$B$100 0,2,FALSE)), C9+90,C9+91)))))) When I copy the sheet using VB (ThisWorkbook.Sheets(2).Copy Befo=ActiveWorkbook.Sheets(1)), the sheet name reference (Holidays) expands to include the master workbook name and path. I want the newly created worksheet to keep the reference "Holidays1" just the way it is. Have I explained this well enough for someone to assist please? -- Ken Hudson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
changing worksheet reference name when copying down cells | Excel Worksheet Functions | |||
Range Reference When Copying Sheet fm One WB to | Excel Programming | |||
Copying a work sheet cell reference as relative not absolute? | Excel Discussion (Misc queries) | |||
copying and paste data from each worksheet to a summary work sheet | Excel Programming | |||
Report: Copying pagebreaks of a reference sheet to other sheets | Excel Programming |