Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Move or copy sheet without including the code?

Hi All,
is it possible to programatically move or copy
the worksheet to internal/external workbook
*without* including the code behind the sheet.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,231
Default Move or copy sheet without including the code?

"shiro" wrote...
is it possible to programatically move or copy
the worksheet to internal/external workbook
*without* including the code behind the sheet.


And without macros in general modules? Yes, you could use any
scripting language capable of Automation to automate Excel to copy or
move worksheets, but there'd be no way in Excel to trigger running
such scripts.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 221
Default Move or copy sheet without including the code?

G'day Shiro

One way would be to copy the entire sheet to a new WB as pasteSpecial.Value,
this ensures none of your code is present in the new WB, this is handy if
the end user only needs to see the data, and doesn't require access for
modification purposes.

As far as automation, Harlan is correct, regarding the triggering without
putting a code in the WS OnChange() event.

I would be more inclined to put the code behind a macro button on your WS to
trigger the process.

Go to this link and modify the code to suit your needs

http://www.rondebruin.nl/copy2.htm

Ron's website has other example code that will certainly help you.

HTH
Mark.


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
Copy an excel sheet from one file to another including formulas Nicolas Heyer Excel Discussion (Misc queries) 4 July 22nd 09 10:36 AM
copy worksheet without including vba code cedtech23[_15_] Excel Programming 2 July 23rd 06 10:58 AM
copy rows that contain certain text to a new sheet including the h mike Excel Programming 4 December 5th 05 02:31 PM
How to copy a sheet and move it to 2nd last (with VBA) Brad K. Excel Programming 1 January 14th 05 08:28 AM
code to move certain rows to another sheet Jay Baxter Excel Programming 3 February 27th 04 12:56 PM


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