Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default Start A UserForm By Entering A Cell

Greetings,

I am running Excel 2k on a W2k box with 1gig of ram.

I am attempting to add a name to a Validation list. The list appears
in 5 different cells. I tried to piggy back this code:

If Not Intersect(Target, Me.Range("B11")) Is Nothing Then
With Target
NewCleanerAddForm.Show
End With
End If

into Private Sub Worksheet_Change(ByVal Target As Range) which is
being used to change the entries to about 12 different cells to all
caps. When I added this code i can get one or the other to work/

Here is the complete sub:

Private Sub Worksheet_Change(ByVal Target As Range)
'Force Caps on certain ranges
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("AK15:AM22,B32,X2,Q7,Q10")) Is _
Nothing Then
With Target
.Value = UCase(.Value)
End With
End If

If Not Intersect(Target, Me.Range("B11")) Is Nothing Then
With Target
NewCleanerAddForm.Show
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

Anyone have any ideas as to how to do this?

TIA

-Minitman
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Start A UserForm By Entering A Cell

When I added this code i can get one or the other to work

Since the range for uppercasing is different than the range for showing the
userform (B11) both would never fire with the same entry.



--
Jim Rech
Excel MVP


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Start A UserForm By Entering A Cell

Try dropping the 'With Target' to show a userform.

Mike F
"Minitman" wrote in message
...
Greetings,

I am running Excel 2k on a W2k box with 1gig of ram.

I am attempting to add a name to a Validation list. The list appears
in 5 different cells. I tried to piggy back this code:

If Not Intersect(Target, Me.Range("B11")) Is Nothing Then
With Target
NewCleanerAddForm.Show
End With
End If

into Private Sub Worksheet_Change(ByVal Target As Range) which is
being used to change the entries to about 12 different cells to all
caps. When I added this code i can get one or the other to work/

Here is the complete sub:

Private Sub Worksheet_Change(ByVal Target As Range)
'Force Caps on certain ranges
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("AK15:AM22,B32,X2,Q7,Q10")) Is _
Nothing Then
With Target
.Value = UCase(.Value)
End With
End If

If Not Intersect(Target, Me.Range("B11")) Is Nothing Then
With Target
NewCleanerAddForm.Show
End With
End If

ws_exit:
Application.EnableEvents = True
End Sub

Anyone have any ideas as to how to do this?

TIA

-Minitman



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
Entering Query Parameters by UserForm David Excel Programming 2 April 29th 04 09:21 AM
I need a UserForm to Auto Start Debi[_2_] Excel Programming 3 March 4th 04 07:30 PM
re-entering userform Rune_Daub[_11_] Excel Programming 2 February 6th 04 10:32 AM
Start-up userform Lars Kofod Excel Programming 1 December 1st 03 03:26 PM
Auto-entering the start and end of a month Laphan[_2_] Excel Programming 4 November 12th 03 08:38 PM


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