Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy sheet without Code


Hi All,

Iam newbie to excel programming . I have a sheet with a command button
and code associated with command button written in the sheet itself.(Ie
not using any module).I want to make a copy of this sheet without this
command button and and associated code, using VBA .IS this possible.Any
help would be gr8
Thanks in advance


Xcelion


--
xcelion
------------------------------------------------------------------------
xcelion's Profile: http://www.excelforum.com/member.php...o&userid=16287
View this thread: http://www.excelforum.com/showthread...hreadid=384872

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Copy sheet without Code

How important is it to you that the code be removed (this is a little tricky.
Possible but tricky for a newbie). You can just change the visible property
of the button and everything is good to go. The button will be invisible and
no one will know it is there.
--
HTH...

Jim Thomlinson


"xcelion" wrote:


Hi All,

Iam newbie to excel programming . I have a sheet with a command button
and code associated with command button written in the sheet itself.(Ie
not using any module).I want to make a copy of this sheet without this
command button and and associated code, using VBA .IS this possible.Any
help would be gr8
Thanks in advance


Xcelion


--
xcelion
------------------------------------------------------------------------
xcelion's Profile: http://www.excelforum.com/member.php...o&userid=16287
View this thread: http://www.excelforum.com/showthread...hreadid=384872


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Copy sheet without Code

This worked in Excel 2000

Sheets("sheet1").Cells().Copy _
Destination:=Sheets("sheet3").Range("A1")

Left the command button on Sheet1 and didn't copy it to Sheet2.
The only code in sheet2, will be stuff you put in after...

use workbook references if you want to copy from one workbook to another.

--
steveB

Remove "AYN" from email to respond
"xcelion" wrote in
message ...

Hi All,

Iam newbie to excel programming . I have a sheet with a command button
and code associated with command button written in the sheet itself.(Ie
not using any module).I want to make a copy of this sheet without this
command button and and associated code, using VBA .IS this possible.Any
help would be gr8
Thanks in advance


Xcelion


--
xcelion
------------------------------------------------------------------------
xcelion's Profile:
http://www.excelforum.com/member.php...o&userid=16287
View this thread: http://www.excelforum.com/showthread...hreadid=384872



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy sheet without Code


Thanks Steve and Jim

Thanks a lot for your suggestions.I will be very helpful for newbie
like me.

:)


--
xcelion
------------------------------------------------------------------------
xcelion's Profile: http://www.excelforum.com/member.php...o&userid=16287
View this thread: http://www.excelforum.com/showthread...hreadid=384872

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 692
Default Copy sheet without Code

You're very welcome!

keep on Exceling...

--
steveB

Remove "AYN" from email to respond
"xcelion" wrote in
message ...

Thanks Steve and Jim

Thanks a lot for your suggestions.I will be very helpful for newbie
like me.

:)


--
xcelion
------------------------------------------------------------------------
xcelion's Profile:
http://www.excelforum.com/member.php...o&userid=16287
View this thread: http://www.excelforum.com/showthread...hreadid=384872





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
VB code to copy sheet format to another sheet ASU Excel Discussion (Misc queries) 12 August 10th 06 02:37 AM
what is the vb code to copy rows from one sheet to another? bxc2739 Excel Discussion (Misc queries) 2 May 25th 06 07:48 PM
copy to sheet code question mlmkbr Excel Programming 0 March 4th 04 07:42 PM
Copy Sheet w/o VBA code Ron de Bruin Excel Programming 1 January 20th 04 04:42 PM
copy and paste from different sheets into one sheet using a VB code reena Excel Programming 2 August 5th 03 02:49 PM


All times are GMT +1. The time now is 09:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"