Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default creating a userform

I want my userform to have labels that are updated with data from a sheet.
Where do I put my code to change things on my form. For example, if I want
to make a checkbox.visible to be false if sheet1.a1="yes" where do I put code
for this.
If I want a page on a multi-page to be visible depanding on a sheet
reference, where does this code go?
thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default creating a userform

Each form has the load function which loads the form, but doesn't show
it yet. then you can arrange your stuff and make it visible with
form.visible.

load form
checkbox.visible = sheet1.range("A1").value
form.show

you can put this code on a button or anything else.

make the values of sheet1 as TRUE or FALSE, that way you can use the
value directly, without evaluating it first.

hth Carlo


On Dec 18, 1:34 pm, Charlie wrote:
I want my userform to have labels that are updated with data from a sheet.
Where do I put my code to change things on my form. For example, if I want
to make a checkbox.visible to be false if sheet1.a1="yes" where do I put code
for this.
If I want a page on a multi-page to be visible depanding on a sheet
reference, where does this code go?
thanks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default creating a userform

If you unfamiliar with creating userforms have a look at this site
http://www.contextures.com/xlUserFor...serForm01.html

--
JB


"Charlie" wrote:

I want my userform to have labels that are updated with data from a sheet.
Where do I put my code to change things on my form. For example, if I want
to make a checkbox.visible to be false if sheet1.a1="yes" where do I put code
for this.
If I want a page on a multi-page to be visible depanding on a sheet
reference, where does this code go?
thanks.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default creating a userform

This was VERY helpful! Thanks. How do I do this: I have a multipage, and
each page is to show data from a sheet that is set up as a database. It will
have 2 to 10 entrys (rows of data) with this data being shown, one entry on
each sheet. Can I programatically add pages to this multipage as the form
loads? If I have the first page set up with text boxes, list boxes, etc to
show my data, can I create more pages on this multipage, if there are more
entries (up to 10)?

"john" wrote:

If you unfamiliar with creating userforms have a look at this site:
http://www.contextures.com/xlUserFor...serForm01.html

--
JB


"Charlie" wrote:

I want my userform to have labels that are updated with data from a sheet.
Where do I put my code to change things on my form. For example, if I want
to make a checkbox.visible to be false if sheet1.a1="yes" where do I put code
for this.
If I want a page on a multi-page to be visible depanding on a sheet
reference, where does this code go?
thanks.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 367
Default creating a userform

If you know, that there are maximum 10 rows, i would make 10pages and
hide/unhide them.

hth

Carlo

On Dec 21, 12:54*pm, Charlie
wrote:
This was VERY helpful! *Thanks. *How do I do this: *I have a multipage, and
each page is to show data from a sheet that is set up as a database. *It will
have 2 to 10 entrys (rows of data) with this data being shown, one entry on
each sheet. *Can I programatically add pages to this multipage as the form
loads? *If I have the first page set up with text boxes, list boxes, etc to
show my data, can I create more pages on this multipage, if there are more
entries (up to 10)?



"john" wrote:
If you unfamiliar with creating userforms have a look at this site:
http://www.contextures.com/xlUserFor...contextures.co...


--
JB


"Charlie" wrote:


I want my userform to have labels that are updated with data from a sheet. *
Where do I put my code to change things on my form. *For example, if I want
to make a checkbox.visible to be false if sheet1.a1="yes" where do I put code
for this.
If I want a page on a multi-page to be visible depanding on a sheet
reference, where does this code go?
thanks.- Hide quoted text -


- Show quoted text -


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
Creating a Table within a UserForm Punter Excel Programming 2 July 25th 07 09:26 AM
Creating a Userform MaxRoberts22 Excel Programming 3 February 2nd 06 08:03 PM
Creating first ever userform but not going how I wanted WhiteFalcon Excel Programming 4 May 11th 05 12:00 AM
Creating a Userform using code trini Excel Programming 1 March 5th 05 11:15 PM
Need help creating a userform with optionbuttons TB[_2_] Excel Programming 2 July 21st 03 02:16 PM


All times are GMT +1. The time now is 09:44 PM.

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"