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

Good Morning,

I have a userform that is shown modeless, which works great at first. If
there are multiple entries, I'm clearing some of the text/combo boxes and
setting focus to a specific Textbox within the userform for the next entry.
At this point, the user can no longer click outside of the userform. Any
suggestions on how to maintain the modeless userform?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default modeless userform

Can you show us your code (especially where it relates to showing the
UserForm)? It sounds like you may be showing the UserForm without the
modeless argument somewhere.

--
Rick (MVP - Excel)


"Dawna" wrote in message
...
Good Morning,

I have a userform that is shown modeless, which works great at first. If
there are multiple entries, I'm clearing some of the text/combo boxes and
setting focus to a specific Textbox within the userform for the next
entry.
At this point, the user can no longer click outside of the userform. Any
suggestions on how to maintain the modeless userform?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default modeless userform

This code is in ThisWorkbook

Private Sub Workbook_Open()
Sheets("2006-2009").Select
Set rRng = Range("A" & Range("A" & Rows.Count).End(xlUp).Row)
With rRng.Offset(rRng.Count + 0, 0).Select
UserForm1.Show vbModeless
End With
End Sub

"Rick Rothstein" wrote:

Can you show us your code (especially where it relates to showing the
UserForm)? It sounds like you may be showing the UserForm without the
modeless argument somewhere.

--
Rick (MVP - Excel)


"Dawna" wrote in message
...
Good Morning,

I have a userform that is shown modeless, which works great at first. If
there are multiple entries, I'm clearing some of the text/combo boxes and
setting focus to a specific Textbox within the userform for the next
entry.
At this point, the user can no longer click outside of the userform. Any
suggestions on how to maintain the modeless userform?


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default modeless userform

Rick,
This is a shortened version of the code when the user can no longer work
around the userform.

Private Sub Cmdnext_Click()

LastRow = Range("A" & Rows.Count).End(xlUp).Row
newrow = LastRow + 1
Range("A" & newrow) = Me.TBRecDate
Range("B" & newrow) = Me.TbDate
Range("F" & newrow) = Me.TbBatch
Range("G" & newrow) = Me.TbSN
Range("L" & newrow) = Me.TBreject
Range("Q" & newrow) = Me.cboDisposition


'Clear fields for next entry
Me.TbSN = ClearContents
Me.TBreject = ClearContents
Me.cboDisposition = ClearContents
Me.TbSN.SetFocus
End Sub

"Dawna" wrote:

This code is in ThisWorkbook

Private Sub Workbook_Open()
Sheets("2006-2009").Select
Set rRng = Range("A" & Range("A" & Rows.Count).End(xlUp).Row)
With rRng.Offset(rRng.Count + 0, 0).Select
UserForm1.Show vbModeless
End With
End Sub

"Rick Rothstein" wrote:

Can you show us your code (especially where it relates to showing the
UserForm)? It sounds like you may be showing the UserForm without the
modeless argument somewhere.

--
Rick (MVP - Excel)


"Dawna" wrote in message
...
Good Morning,

I have a userform that is shown modeless, which works great at first. If
there are multiple entries, I'm clearing some of the text/combo boxes and
setting focus to a specific Textbox within the userform for the next
entry.
At this point, the user can no longer click outside of the userform. Any
suggestions on how to maintain the modeless userform?


.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default modeless userform

I don't think you can set a textbox = to ClearContents
Try
Me.TbSN.Text = ""

Mike F

"Dawna" wrote in message
...
Rick,
This is a shortened version of the code when the user can no longer work
around the userform.

Private Sub Cmdnext_Click()

LastRow = Range("A" & Rows.Count).End(xlUp).Row
newrow = LastRow + 1
Range("A" & newrow) = Me.TBRecDate
Range("B" & newrow) = Me.TbDate
Range("F" & newrow) = Me.TbBatch
Range("G" & newrow) = Me.TbSN
Range("L" & newrow) = Me.TBreject
Range("Q" & newrow) = Me.cboDisposition


'Clear fields for next entry
Me.TbSN = ClearContents
Me.TBreject = ClearContents
Me.cboDisposition = ClearContents
Me.TbSN.SetFocus
End Sub

"Dawna" wrote:

This code is in ThisWorkbook

Private Sub Workbook_Open()
Sheets("2006-2009").Select
Set rRng = Range("A" & Range("A" & Rows.Count).End(xlUp).Row)
With rRng.Offset(rRng.Count + 0, 0).Select
UserForm1.Show vbModeless
End With
End Sub

"Rick Rothstein" wrote:

Can you show us your code (especially where it relates to showing the
UserForm)? It sounds like you may be showing the UserForm without the
modeless argument somewhere.

--
Rick (MVP - Excel)


"Dawna" wrote in message
...
Good Morning,

I have a userform that is shown modeless, which works great at first.
If
there are multiple entries, I'm clearing some of the text/combo boxes
and
setting focus to a specific Textbox within the userform for the next
entry.
At this point, the user can no longer click outside of the userform.
Any
suggestions on how to maintain the modeless userform?

.



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
Modeless UserForm Brandt Excel Programming 5 April 25th 08 04:02 AM
Modeless Userform Roger Excel Programming 2 March 10th 08 08:01 PM
Modeless userform hngo New Users to Excel 2 July 13th 05 09:23 AM
modeless userform jacob Excel Programming 1 May 4th 04 02:53 PM
Modeless userform jacob[_3_] Excel Programming 2 September 29th 03 08:02 PM


All times are GMT +1. The time now is 09:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"