Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default adding a worksheet causes main userform to corrupt

Wehn adding a worksheet in a macro it corrputs the userform i'm adding one
worksheet then another in succession i have triedseveral differnt methods of
doing this but it keeps corrupting the userform each time.

Am going to keep playing with this as it needs to be ready ASAP but if
anyone has any idea of why this is happening i would be greatful.

P.S. code is hard to transfer as am on differnt machines but currently the
offening lines of code a

If frmMain.chkOutbound.Value = True Then
Set NewSheet1 = worksheets.add
newsheet1.name = "Baseline Data Tx"
End if
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default adding a worksheet causes main userform to corrupt

"corrputs the userform" is not self defining. What does that mean? what is
happening to you userform? Are you getting execution errors?

What version of excel are you using?
--
Regards,
Tom Ogilvy

"Magius00" wrote in message
...
Wehn adding a worksheet in a macro it corrputs the userform i'm adding one
worksheet then another in succession i have triedseveral differnt methods

of
doing this but it keeps corrupting the userform each time.

Am going to keep playing with this as it needs to be ready ASAP but if
anyone has any idea of why this is happening i would be greatful.

P.S. code is hard to transfer as am on differnt machines but currently the
offening lines of code a

If frmMain.chkOutbound.Value = True Then
Set NewSheet1 = worksheets.add
newsheet1.name = "Baseline Data Tx"
End if



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default adding a worksheet causes main userform to corrupt

2003

have found thats it's not just on the sheet i was adding but happend later
as well when adding another sheet. have found no other point except for when
it creates the new worksheet

"Tom Ogilvy" wrote:

"corrputs the userform" is not self defining. What does that mean? what is
happening to you userform? Are you getting execution errors?

What version of excel are you using?
--
Regards,
Tom Ogilvy

"Magius00" wrote in message
...
Wehn adding a worksheet in a macro it corrputs the userform i'm adding one
worksheet then another in succession i have triedseveral differnt methods

of
doing this but it keeps corrupting the userform each time.

Am going to keep playing with this as it needs to be ready ASAP but if
anyone has any idea of why this is happening i would be greatful.

P.S. code is hard to transfer as am on differnt machines but currently the
offening lines of code a

If frmMain.chkOutbound.Value = True Then
Set NewSheet1 = worksheets.add
newsheet1.name = "Baseline Data Tx"
End if




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default adding a worksheet causes main userform to corrupt

I haven't heard of such a relationship and I couldn't find anything in the
knowledge base.

Perhaps you can use better terms to search with than I did

http://support.microsoft.com/

--
Regards,
Tom Ogilvy

"Magius00" wrote in message
...
2003

have found thats it's not just on the sheet i was adding but happend later
as well when adding another sheet. have found no other point except for

when
it creates the new worksheet

"Tom Ogilvy" wrote:

"corrputs the userform" is not self defining. What does that mean?

what is
happening to you userform? Are you getting execution errors?

What version of excel are you using?
--
Regards,
Tom Ogilvy

"Magius00" wrote in message
...
Wehn adding a worksheet in a macro it corrputs the userform i'm adding

one
worksheet then another in succession i have triedseveral differnt

methods
of
doing this but it keeps corrupting the userform each time.

Am going to keep playing with this as it needs to be ready ASAP but if
anyone has any idea of why this is happening i would be greatful.

P.S. code is hard to transfer as am on differnt machines but currently

the
offening lines of code a

If frmMain.chkOutbound.Value = True Then
Set NewSheet1 = worksheets.add
newsheet1.name = "Baseline Data Tx"
End if






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default adding a worksheet causes main userform to corrupt

Unfortutnly i haven't found anything in the knowladgebase. Then again i
haven't found anything through googling for it either. NOrmaly i would assume
it was my code but since it happens when the opperation to add a sheet occurs
no matter the method used i'm stuck.

If anyone has any ideas to tryplease let me know
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
Corrupt Excel Worksheet Sim Excel Discussion (Misc queries) 0 April 27th 09 06:55 PM
on your main page click on the worksheet name and be taken to it chiefrockeruk Excel Worksheet Functions 2 May 20th 08 05:40 PM
Replacing a corrupt worksheet Steve Excel Worksheet Functions 0 September 17th 07 11:20 PM
adding several worksheet cells onto a main worksheet oxicottin Excel Worksheet Functions 2 September 20th 06 08:07 PM
Access from add_in userform to main template userform.... Ajit Excel Programming 1 November 18th 04 05:15 PM


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