PC Review


Reply
 
 
geebee
Guest
Posts: n/a
 
      10th Jun 2008
hi,

i have the following:

Dim wks As Worksheet
Set wks = Worksheets.Add(After:=Sheets("xyz"))
Sheets("tester").Cells.Copy Destination:=wks.Range("A1")

please note that the "tester" sheet has a combobox. for some reason when i
invoke the code to create the new sheet from the "tester" sheet, the OnChange
event of the combobox is triggered. how can i prevent this annoying thing
from happening when i create a new sheet?

thanks in advance,
geebee

 
Reply With Quote
 
 
 
 
Susan
Guest
Posts: n/a
 
      10th Jun 2008
either change the name of the "tester" sheet, or change the name of
the combobox............
excel can't decide which one you mean.

susan



On Jun 10, 9:41*am, geebee <geraldj...@hotmail.com(noSPAMs)> wrote:
> hi,
>
> i have the following:
>
> Dim wks As Worksheet
> * * Set wks = Worksheets.Add(After:=Sheets("xyz"))
> * * Sheets("tester").Cells.Copy Destination:=wks.Range("A1")
>
> please note that the "tester" sheet has a combobox. *for some reason when i
> invoke the code to create the new sheet from the "tester" sheet, the OnChange
> event of the combobox is triggered. *how can i prevent this annoying thing
> from happening when i create a new sheet?
>
> thanks in advance,
> geebee


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy an intial cells contents into the next series of blank cells ina column freeriderxlt Microsoft Excel Discussion 2 25th Aug 2009 07:47 AM
RE: Copy Visible Cells in Sheet with Merged and Hidden Cells FSt1 Microsoft Excel Misc 1 2nd Oct 2008 12:51 AM
macro needed to copy blocks of cells across to list of cells down =?Utf-8?B?cGllcnNvbnBybw==?= Microsoft Excel Programming 3 28th Mar 2007 12:51 PM
How to use macros to copy a range of cells which can exclude some cells which I didn't want to be copied? excelnovice Microsoft Excel Worksheet Functions 2 25th Sep 2005 12:38 AM
How to COPY from cells to cells w/o affecting respective formulae underneath ? EduardoDon Microsoft Excel New Users 1 21st Apr 2004 12:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:19 AM.