Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Open form on Enter

In my macro, the user would to move to a specific cell.
When they hit the "Enter" key, I would like for a form to
open. The user would then enter data into the form based
on the line in the spreadsheet that they are in. Once they
enter all of the data, they would hit a button, the info
would be displayed on another sheet, the form would close,
and the cell on the next line would be active.

Is this possible? I'm having some trouble getting the
form to display when the "Enter" key is hit.

Any suggestions would be appreciated. Thanks..
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Open form on Enter

You say move to a specific cell to trigger the form, but then you want the
form to react to the cell they are in. Wouldn't the cell always be the
"specifc cell" that triggers the action.

Is specific cell actually a cell on any row in a particular column. I thing
a clear explanation is needed.

--
Regards,
Tom Ogilvy

"JT" wrote in message
...
In my macro, the user would to move to a specific cell.
When they hit the "Enter" key, I would like for a form to
open. The user would then enter data into the form based
on the line in the spreadsheet that they are in. Once they
enter all of the data, they would hit a button, the info
would be displayed on another sheet, the form would close,
and the cell on the next line would be active.

Is this possible? I'm having some trouble getting the
form to display when the "Enter" key is hit.

Any suggestions would be appreciated. Thanks..



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Open form on Enter

The user will move to any row in col D. What I would like
is for them to hit the Enter key. When they hit the Enter
Key, the form is displayed.

Is it possible to display a form, have the user key data
into the form, update another sheet in the workbook before
the next cell in the original sheet is activated?

Thanks for the help.

-----Original Message-----
You say move to a specific cell to trigger the form, but

then you want the
form to react to the cell they are in. Wouldn't the cell

always be the
"specifc cell" that triggers the action.

Is specific cell actually a cell on any row in a

particular column. I thing
a clear explanation is needed.

--
Regards,
Tom Ogilvy

"JT" wrote in

message
...
In my macro, the user would to move to a specific cell.
When they hit the "Enter" key, I would like for a form

to
open. The user would then enter data into the form

based
on the line in the spreadsheet that they are in. Once

they
enter all of the data, they would hit a button, the info
would be displayed on another sheet, the form would

close,
and the cell on the next line would be active.

Is this possible? I'm having some trouble getting the
form to display when the "Enter" key is hit.

Any suggestions would be appreciated. Thanks..



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Open form on Enter

Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Static OldCell As Range
If OldCell Is Nothing Then
Set OldCell = Me.Range("A1")
Else
MsgBox Target.Address & " - " & OldCell.Address
End If
If OldCell.Column = 4 Then
Load UserForm1
UserForm1.Label1.Caption = OldCell.Row
UserForm1.Show
End If
Set OldCell = Target
End Sub

would be a start

--
Regards,
Tom Ogilvy

"JT" wrote in message
...
The user will move to any row in col D. What I would like
is for them to hit the Enter key. When they hit the Enter
Key, the form is displayed.

Is it possible to display a form, have the user key data
into the form, update another sheet in the workbook before
the next cell in the original sheet is activated?

Thanks for the help.

-----Original Message-----
You say move to a specific cell to trigger the form, but

then you want the
form to react to the cell they are in. Wouldn't the cell

always be the
"specifc cell" that triggers the action.

Is specific cell actually a cell on any row in a

particular column. I thing
a clear explanation is needed.

--
Regards,
Tom Ogilvy

"JT" wrote in

message
...
In my macro, the user would to move to a specific cell.
When they hit the "Enter" key, I would like for a form

to
open. The user would then enter data into the form

based
on the line in the spreadsheet that they are in. Once

they
enter all of the data, they would hit a button, the info
would be displayed on another sheet, the form would

close,
and the cell on the next line would be active.

Is this possible? I'm having some trouble getting the
form to display when the "Enter" key is hit.

Any suggestions would be appreciated. Thanks..



.



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
Form to enter data into excel Nurse Louise New Users to Excel 1 July 1st 21 11:33 AM
Using a template form, advance a form number everytime you open ShoDan Excel Discussion (Misc queries) 1 January 31st 08 01:34 PM
Create a form in excel so I can enter data using DataForm Lynn Excel Discussion (Misc queries) 2 February 14th 07 06:35 PM
Can I use a FORM to enter data if I have more than the 32 fields? Graciemygirl Excel Discussion (Misc queries) 3 March 23rd 06 11:01 PM
Is it possible to open the VBA form with a link in a sheet and to pass variable from a cell to the VBA form? Daniel[_14_] Excel Programming 1 August 29th 04 01:20 PM


All times are GMT +1. The time now is 05:22 PM.

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"