Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Date field in user form & Loading a user form on opening workbook

I am preparing a user form. I am facing the following two problems:

i) I want the user form to load when workbook is opened. Under ThisWorkbook
< workbook < Open, I have written frmxyz.show. Still the form is not
showing. I am getting Error 424: Object required. I tried to check where
the mistake could be. I am unable to locate it. The name of user form
'frmxyz' is appearing in the project window. Still I do not why the
programme is unable to locate it. Kindly help me understand the problem.

ii) In one of the text boxes of the user form, I want dates to entered in
the format mm/dd/yyyy. How to do it and how to ensure that the slash '/'
marks between mm, dd and yyyy automatically appear when the user form is
loaded so that the user will automatically know that he has to fill in dates
only.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Date field in user form & Loading a user form on opening workbook

Hi everybody,

The first problem is solved. But I request Microsoft to see whether any
improvement in Error Reporting is needed. The problem was an error in the
spelling of an object in Userform Initialise, whereas the Error 424 was
directing me to "frmxyz.show" under Workbook Open section. The spelling
error was also not on the name of the form i.e., "frmxyz" but in the spelling
of the name of a command button. ( instead of cmdxyz I had typed cmbxyz). I
located the mistake after using the "Debug" menu separately. Had the error
reporting system taken me directly to the mistake in Userform initialise
section, I wouldn't approached this discussion forum.

As regards the date field, I understand from other threads in this forum
that what I wanted was an 'Input Mask' and that it can be loaded, if I have
Ms Access with me. I have MS Access. But I wanted to distribute the work
done by me to a few students who may use the user form. If they did not have
MS Access loaded in their MS Office package will they not face problem ?

"Balan" wrote:

I am preparing a user form. I am facing the following two problems:

i) I want the user form to load when workbook is opened. Under ThisWorkbook
< workbook < Open, I have written frmxyz.show. Still the form is not
showing. I am getting Error 424: Object required. I tried to check where
the mistake could be. I am unable to locate it. The name of user form
'frmxyz' is appearing in the project window. Still I do not why the
programme is unable to locate it. Kindly help me understand the problem.

ii) In one of the text boxes of the user form, I want dates to entered in
the format mm/dd/yyyy. How to do it and how to ensure that the slash '/'
marks between mm, dd and yyyy automatically appear when the user form is
loaded so that the user will automatically know that he has to fill in dates
only.

Thanks in advance.

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
Loading an Excel User Form AccessHelp Excel Programming 3 November 14th 07 06:48 PM
SHow user form when opening workbook Wanna Learn Excel Discussion (Misc queries) 2 June 26th 07 06:30 PM
Problems loading user form Stu W Excel Programming 1 June 24th 07 04:10 AM
Loading a calendar (user form) from another project (personal.xls) Ollie[_2_] Excel Programming 1 September 25th 05 09:33 PM
Auto loading of a user form sometimes -\) Excel Programming 1 August 2nd 03 12:32 AM


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