Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Popup input-form on focus

Dear All,

How can i get a popup input-form when the cell has the focus or with a
shotcut.
I want to insert several lines of text in a small cel.
The cell must stay small on the sheet because it is rarely used .

Thanks,

Filip


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default Popup input-form on focus

Put this behind the sheet you wish to control. The cell actioned is set by
the the line "If Target.Column = 1 And Target.Row = 1 Then" change the
values to suit your needs. Currently it is set to Cell A1. If you change the
line to "If Target.Column = 1 Then" only then all cells in column 1 will
trigger this action.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = 1 And Target.Row = 1 Then
ActiveCell.Value = InputBox("Enter Text", "Small CellText Editor",
ActiveCell.Value)
End If
End Sub

--
Cheers
Nigel



"Filips Benoit" wrote in message
...
Dear All,

How can i get a popup input-form when the cell has the focus or with a
shotcut.
I want to insert several lines of text in a small cel.
The cell must stay small on the sheet because it is rarely used .

Thanks,

Filip




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Popup input-form on focus


"Filips Benoit" wrote in message
...
Dear All,

How can i get a popup input-form when the cell has the focus or with a
shotcut.
I want to insert several lines of text in a small cel.
The cell must stay small on the sheet because it is rarely used .

Thanks,

Filip


-----------------------------------------
Filip,

Go into the code for the sheet you want to edit (right click on the sheet
from within the VBA editor).

Then you can use something like this:-

Private Sub Worksheet_Change(ByVal Target As Excel.Range)

If Target.Address = "$C$1" Then
Application.Run "Filter_Document"

Else
' Range("F10").Value = False
End If
Application.EnableEvents = True


End Sub

For this example, when a change is recognised in cell C1 it runs the macro
Filter_Document. With this you have to press enter for the macro to run.

Some-one else may be able to tell you if there is a way to run a macro when
you click on a cell.

Regards

Andi




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
How to use two parameters in input of popup Variables - Gary's Student Colin Hayes Excel Worksheet Functions 0 February 2nd 10 11:03 PM
Call popup box with pre-programmed input Colin Hayes Excel Worksheet Functions 2 September 12th 09 05:16 PM
Popup Input Box Dolphinv4 Excel Discussion (Misc queries) 6 May 10th 08 05:02 PM
form popup David W[_3_] Excel Programming 0 July 25th 03 10:05 PM
Form Popup David W[_3_] Excel Programming 0 July 25th 03 12:20 PM


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