Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Cell entry forces form pop-up

Hi XL 2000

I would like a UserForm to pop-up upon the user entering
worksheet cell E3.

Any ideas appreciated.

Thanks,
Paul
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Cell entry forces form pop-up

Hi
you may use the worksheet_change event for this (not tested though)
Enter the following in your worksheet module:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
if target.address = "$E$5" and target.value <"" then
'invoke user form
end if
End Sub

--
Regards
Frank Kabel
Frankfurt, Germany

Paul wrote:
Hi XL 2000

I would like a UserForm to pop-up upon the user entering
worksheet cell E3.

Any ideas appreciated.

Thanks,
Paul

  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Cell entry forces form pop-up

Thank you for your response Frank.

Paul

-----Original Message-----
Hi
you may use the worksheet_change event for this (not

tested though)
Enter the following in your worksheet module:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
if target.address = "$E$5" and target.value <"" then
'invoke user form
end if
End Sub

--
Regards
Frank Kabel
Frankfurt, Germany

Paul wrote:
Hi XL 2000

I would like a UserForm to pop-up upon the user entering
worksheet cell E3.

Any ideas appreciated.

Thanks,
Paul

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Cell entry forces form pop-up

I think you need to use the Worksheet_SelectionChange
event, rather than the WorkSheet_Change event. The change
event occurs, I believe, only when you actually enter
data into a cell, or change data that is already there.
The SelectionChange event occurs whenever the user
selects a new cell or range of cells.

-----Original Message-----
Hi
you may use the worksheet_change event for this (not

tested though)
Enter the following in your worksheet module:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
if target.address = "$E$5" and target.value <"" then
'invoke user form
end if
End Sub

--
Regards
Frank Kabel
Frankfurt, Germany

Paul wrote:
Hi XL 2000

I would like a UserForm to pop-up upon the user

entering
worksheet cell E3.

Any ideas appreciated.

Thanks,
Paul

.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Cell entry forces form pop-up

Hi
depends on what the OP wants to use as trigger:
- if the user has to enter a value before the messagebox appears I
would use the worksheet_change event
- With the selection_change event only moving the cursor to the cell
will cause the messagebox

- depens on the OP's requirements :-)

--
Regards
Frank Kabel
Frankfurt, Germany
schrieb im Newsbeitrag
...
I think you need to use the Worksheet_SelectionChange
event, rather than the WorkSheet_Change event. The change
event occurs, I believe, only when you actually enter
data into a cell, or change data that is already there.
The SelectionChange event occurs whenever the user
selects a new cell or range of cells.

-----Original Message-----
Hi
you may use the worksheet_change event for this (not

tested though)
Enter the following in your worksheet module:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
if target.address = "$E$5" and target.value <"" then
'invoke user form
end if
End Sub

--
Regards
Frank Kabel
Frankfurt, Germany

Paul wrote:
Hi XL 2000

I would like a UserForm to pop-up upon the user

entering
worksheet cell E3.

Any ideas appreciated.

Thanks,
Paul

.




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
Copying from excel forces the close of office Baker1dad Excel Discussion (Misc queries) 0 January 23rd 08 01:30 AM
Save forces New File cyn Setting up and Configuration of Excel 0 December 19th 06 05:01 PM
Excel 2003 - Subtotal forces global recalculations thirdjohn84 Excel Discussion (Misc queries) 5 August 24th 06 04:24 PM
Data Entry Form Bethany L Excel Worksheet Functions 0 February 20th 06 06:23 PM
Help with data entry form please Devon T. Sowell Excel Programming 4 February 1st 04 04:28 PM


All times are GMT +1. The time now is 04:11 PM.

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"