disabling userform in form :: MrExcel Message Board


 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

disabling userform in form
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

KD12
Board Regular


Joined: 23 Jan 2003
Posts: 20


Status: Offline

 Reply with quote  

disabling userform in form

Hi all,

I have a question. I currently have a template with numerous macros and 1 userform. I have the userform set up to show as soon as the template is opened. The user then inputs various info and hits the okay button to populate the template. They then click a button on a customized toolbar that runs a macro to save the form under a different name(using values from certain cells). All of this works fine. My problem is, in the new form they create, the userform shows up and depopulates the cells of the worksheet. Is there a way to either 1)disable the userform during the before-save phase so it won't show up or 2)modify the userform so it won't erase cell values if no new cell values are added? If additional code is needed, where would I put it?


Thanks,
Kim

Post Fri Sep 19, 2003 11:57 am 
 View user's profile Send private message

Andrew Poulsom
MrExcel MVP


Joined: 22 Jul 2002
Posts: 8266

Flag: Uk

Status: Offline

 Reply with quote  

Re: disabling userform in form

You could try copying the sheet to a new workbook and saving that. Then your UserForm won't be in the copy.

Post Fri Sep 19, 2003 12:05 pm 
 View user's profile Send private message

KD12
Board Regular


Joined: 23 Jan 2003
Posts: 20


Status: Offline

 Reply with quote  

Re: disabling userform in form

That really isn't realistic for me. We have hundreds of sheets created off this template. I'm just having a lot of problems with users accidently erasing all the cell values. I am trying to make the template as user friendly as possible.

Post Fri Sep 19, 2003 1:07 pm 
 View user's profile Send private message

Andrew Poulsom
MrExcel MVP


Joined: 22 Jul 2002
Posts: 8266

Flag: Uk

Status: Offline

 Reply with quote  

Re: disabling userform in form

Well you could either:

1. Populate the controls on the UserForm with the current values before you show it, or

2. Test that all the controls are filled in before updating the existing values.

I assume you are comfortable with the coding.

Whatever you do will not take effect in your existing copies.

Post Fri Sep 19, 2003 1:15 pm 
 View user's profile Send private message
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.