Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Duplicating worksheet by VBA

Hi all

I expect that this wheel has already been invented, so grateful for any
help.

I want a VBA routine that mimics the effect of Edit/Move or Copy Sheet (with
the "Copy" box checked)
but with the following differences from the treatment desplayed by the
Edit/... method:

1) If a cell in the source sheet refers to a global (ie workbook level)
name, then the Edit/Copy Sheet method results in the creation of a name
local to the newly created sheet. I do not want this (new, local) name to
be created. Affected cells in the newly created sheet should refer to the
same global name as the cell in the source sheet.

2) If a cell in the source sheet refers to a name that is local to another
sheet that is NOT being simultaneously duplicated, then the equivalent cell
in the newly created sheet should refer to the same local name, without the
creation of additional names containing errors.

Thanks in advance


--
Return email address is not as DEEP as it appears


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
Duplicating/Mirror Data into another worksheet within same workboo TJ Excel Worksheet Functions 1 May 6th 08 09:39 AM
Duplicating a worksheet minus the data NavyPianoMan Excel Discussion (Misc queries) 6 August 31st 07 08:28 AM
Duplicating Worksheet to 20 sheet workbook Steve Excel Discussion (Misc queries) 0 September 28th 06 11:17 PM
How do I prevent rows from duplicating when sending a worksheet? CIA @ honeywell Excel Worksheet Functions 0 September 14th 06 02:40 AM
Duplicating worksheet-level names jmg092548 Excel Discussion (Misc queries) 5 August 14th 05 11:11 PM


All times are GMT +1. The time now is 01:44 AM.

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"