#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Userform

I have created a userform:- name = frmWelcome. On the form I have a
checkbox:- name = cbNoView. The form contains information concerning the
workbook.

What I am trying to do is to have the form open with excel but should the
user not want to see it again then tick the check box, and it will not open
again.

Can anyone point me in the right direction as to the code requirement and
where it would be placed.

Excel 2003

Sandy

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Userform

You could have a sheet in the workbook, and set that sheet's visibility to
very hidden, and then have the event record a 1 in cell A1 on this sheet if
the checkbox is ticked.

Then you just need to add an if statement before frmWelcome.show in your
workbook open event.

Sam

"Sandy" wrote:

I have created a userform:- name = frmWelcome. On the form I have a
checkbox:- name = cbNoView. The form contains information concerning the
workbook.

What I am trying to do is to have the form open with excel but should the
user not want to see it again then tick the check box, and it will not open
again.

Can anyone point me in the right direction as to the code requirement and
where it would be placed.

Excel 2003

Sandy

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Userform

Very simple and works a treat
Thank you
Sandy

"Sam Wilson" wrote in message
...
You could have a sheet in the workbook, and set that sheet's visibility to
very hidden, and then have the event record a 1 in cell A1 on this sheet
if
the checkbox is ticked.

Then you just need to add an if statement before frmWelcome.show in your
workbook open event.

Sam

"Sandy" wrote:

I have created a userform:- name = frmWelcome. On the form I have a
checkbox:- name = cbNoView. The form contains information concerning the
workbook.

What I am trying to do is to have the form open with excel but should the
user not want to see it again then tick the check box, and it will not
open
again.

Can anyone point me in the right direction as to the code requirement and
where it would be placed.

Excel 2003

Sandy

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Userform

Can you mark it as the answer, in case someone else searches for a similar
problem?

Sam

"Sandy" wrote:

Very simple and works a treat
Thank you
Sandy

"Sam Wilson" wrote in message
...
You could have a sheet in the workbook, and set that sheet's visibility to
very hidden, and then have the event record a 1 in cell A1 on this sheet
if
the checkbox is ticked.

Then you just need to add an if statement before frmWelcome.show in your
workbook open event.

Sam

"Sandy" wrote:

I have created a userform:- name = frmWelcome. On the form I have a
checkbox:- name = cbNoView. The form contains information concerning the
workbook.

What I am trying to do is to have the form open with excel but should the
user not want to see it again then tick the check box, and it will not
open
again.

Can anyone point me in the right direction as to the code requirement and
where it would be placed.

Excel 2003

Sandy

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Userform

I use this code in combination with a registry-key (user-part)

*************
' Show About screen
If GetSetting(appname:="YourExcelSheetName", Section:="About", _
Key:="Aboutscreen") = "" Then GoTo Next2do1
If GetSetting(appname:="YourExcelSheetName", Section:="About", _
Key:="Aboutscreen") = True Then GoTo Next2do2

Next2do1:
UserForm1.Show

Next2do2:
********
Hope this helps
Rob


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Userform

On 29 mei, 18:33, dqsp wrote:
I use this code in combination with a registry-key (user-part)

*************
' * Show About screen
* * If GetSetting(appname:="YourExcelSheetName", Section:="About", _
* * * Key:="Aboutscreen") = "" Then GoTo Next2do1
* * If GetSetting(appname:="YourExcelSheetName", Section:="About", _
* * * Key:="Aboutscreen") = True Then GoTo Next2do2

Next2do1:
* * UserForm1.Show

Next2do2:
********
Hope this helps
Rob


The procedure is part of a workbook_open event
What I forgot:
Of course when ticking the checkbox you need the code to write in the
registry.
The code is:
Private Sub cbNoView_Click()
' Information is written in
' HKEY_CURRENT_USER/Software/VB and VBA Program Settings/
YourExcelSheetName
' Section About
' Key AboutScreen
SaveSetting appname:="YourExcelSheetName", Section:="About", _
Key:="AboutScreen", setting:=cbNoView.Value
End Sub
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Userform

I will give this a try and report back later
Thanks Rob
Sandy

"dqsp" wrote in message
...
On 29 mei, 18:33, dqsp wrote:
I use this code in combination with a registry-key (user-part)

*************
' Show About screen
If GetSetting(appname:="YourExcelSheetName", Section:="About", _
Key:="Aboutscreen") = "" Then GoTo Next2do1
If GetSetting(appname:="YourExcelSheetName", Section:="About", _
Key:="Aboutscreen") = True Then GoTo Next2do2

Next2do1:
UserForm1.Show

Next2do2:
********
Hope this helps
Rob


The procedure is part of a workbook_open event
What I forgot:
Of course when ticking the checkbox you need the code to write in the
registry.
The code is:
Private Sub cbNoView_Click()
' Information is written in
' HKEY_CURRENT_USER/Software/VB and VBA Program Settings/
YourExcelSheetName
' Section About
' Key AboutScreen
SaveSetting appname:="YourExcelSheetName", Section:="About", _
Key:="AboutScreen", setting:=cbNoView.Value
End Sub


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
Is there an easy Copy/Paste of a Userform ? (Entire Userform Including tx & cbx's) Corey Excel Programming 2 January 9th 07 01:01 PM
Userform to enter values and shown in same userform in list helmekki[_104_] Excel Programming 0 November 19th 05 03:23 PM
Looping procedure calls userform; how to exit loop (via userform button)? KR Excel Programming 6 July 27th 05 12:57 PM
Activating userform and filling it with data form row where userform is activate Marthijn Beusekom via OfficeKB.com[_2_] Excel Programming 3 May 6th 05 05:44 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 07:06 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"