Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Activate user form upon condition

I want to be able to activate a user form only one time. How can I d
this? Can I do this upon first entry into the sheet?

If I rely on the contents of a cell to trigger the form, how can I d
this? What I'm thinking about doing is testing a date field fo
current date and if it's not current, I want to show the user form

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Activate user form upon condition

Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("A1")) Is Nothing Then
With Target
If .Value = Date Then
Userform1.Show
End If
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

THis is worksheet code, so put it in the worksheet code module.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"fishergomz " wrote in message
...
I want to be able to activate a user form only one time. How can I do
this? Can I do this upon first entry into the sheet?

If I rely on the contents of a cell to trigger the form, how can I do
this? What I'm thinking about doing is testing a date field for
current date and if it's not current, I want to show the user form.


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Activate user form upon condition

Thanks, I'll give it a try

--
Message posted from http://www.ExcelForum.com

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
activate/deactivate macro depending on who's the user anna Excel Discussion (Misc queries) 3 January 24th 10 11:11 PM
Trying to get a User Form to activate off a drop down menu Rcarper Excel Discussion (Misc queries) 2 October 2nd 09 02:04 PM
Activate a form ? dhstein Excel Discussion (Misc queries) 5 July 30th 09 02:51 AM
Activate Excel worksheet after showing a user form ? KajBre Excel Programming 5 January 24th 04 03:56 PM
How to keep window + form activate together John Brash Excel Programming 1 July 24th 03 10:13 AM


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