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

Your Original Code Works! Thank You!

"WBTKbeezy" wrote:

That didnm't do any thing....

I have this code to use with the calendar control that pops up the calendar
when cell a1 is selected, but i can't edit it for my sure from (which is
named SqFt)

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Not Application.Intersect(Range("A1"), Target) Is Nothing Then
Calendar1.Visible = True
' select Today's date in the Calendar
Calendar1.Value = Date
ElseIf Calendar1.Visible Then Calendar1.Visible = False
End If
End Sub

"Jim Thomlinson" wrote:

Place this code in the sheet where you want to initaite the user form
from...You may need to change the name of the form depending what your form
is named...

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$A$2" Then UserForm1.Show
End Sub
--
HTH...

Jim Thomlinson


"WBTKbeezy" wrote:

I have created a user form in Excel, but I do not know an easy way to display
it. Ideally I would like it to just pop up when someone clicks in cell A2.
Any thoughts?

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
user form question: text box to display result BigPig Excel Worksheet Functions 0 February 25th 06 08:17 PM
How to display =x/y result in a user form AndyRoo Excel Programming 2 November 25th 05 02:41 PM
Display history in user form James W.[_2_] Excel Programming 2 February 1st 05 09:55 PM
how do i display a value in a user form as a result of a selectio. ptoddx1 Excel Programming 3 January 29th 05 04:42 PM
User Form to display more than 1 reslut EstherJ Excel Programming 1 August 23rd 04 01:40 PM


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