Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default How do I close form

I am having problems closing a form. I am inexperiences with VB in excel but
have done quite a bit with access.
I am trying to use a form to get a password to unhide columns in a form. I
am using a command button on the worksheet to open a form called frmPassword.
I want to use the text in a txt box to set the value of a variable in the
original procedure that shows the frmPassword. I cannot however get the form
to close. I have put a command button on the form and am trying to use it's
click event to close the form - in access I would use me.close. This does not
become an option in the list available and if I type it I get an error
message that the method or data member was not found. I would be grateful for
any help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default How do I close form

Me.Hide

This will hide but not unload the form, so the controls (and their values)
are still accessible.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"PeterW" wrote in message
...
I am having problems closing a form. I am inexperiences with VB in excel
but
have done quite a bit with access.
I am trying to use a form to get a password to unhide columns in a form. I
am using a command button on the worksheet to open a form called
frmPassword.
I want to use the text in a txt box to set the value of a variable in the
original procedure that shows the frmPassword. I cannot however get the
form
to close. I have put a command button on the form and am trying to use
it's
click event to close the form - in access I would use me.close. This does
not
become an option in the list available and if I type it I get an error
message that the method or data member was not found. I would be grateful
for
any help



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 340
Default How do I close form

Use

Me.Hide

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"PeterW" wrote in message
...
I am having problems closing a form. I am inexperiences with VB in excel
but
have done quite a bit with access.
I am trying to use a form to get a password to unhide columns in a form. I
am using a command button on the worksheet to open a form called
frmPassword.
I want to use the text in a txt box to set the value of a variable in the
original procedure that shows the frmPassword. I cannot however get the
form
to close. I have put a command button on the form and am trying to use
it's
click event to close the form - in access I would use me.close. This does
not
become an option in the list available and if I type it I get an error
message that the method or data member was not found. I would be grateful
for
any help



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default How do I close form

Mant thanks to you both that works fine

"Bob Flanagan" wrote:

Use

Me.Hide

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"PeterW" wrote in message
...
I am having problems closing a form. I am inexperiences with VB in excel
but
have done quite a bit with access.
I am trying to use a form to get a password to unhide columns in a form. I
am using a command button on the worksheet to open a form called
frmPassword.
I want to use the text in a txt box to set the value of a variable in the
original procedure that shows the frmPassword. I cannot however get the
form
to close. I have put a command button on the form and am trying to use
it's
click event to close the form - in access I would use me.close. This does
not
become an option in the list available and if I type it I get an error
message that the method or data member was not found. I would be grateful
for
any help




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
Close form... pianoman[_34_] Excel Programming 6 June 5th 06 02:09 PM
close .chm with form ckoch Excel Programming 2 May 9th 06 07:49 PM
Close Switchboard Form ca1358 Excel Programming 1 February 6th 06 09:36 PM
Form Close Button ceemo[_37_] Excel Programming 3 October 12th 05 10:39 PM
Close Form with VBA William C. Smith Excel Programming 3 September 2nd 03 05:28 AM


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