Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 661
Default Return action when a selected cell has focus.

Hello All,

Code is needed to call a Combo box when a selected cell has focus.

For example;
When cell A8 (Range("A8").Select) is selected, a
designated Combo Box is visible.

What is the code to perform this task?

Thanks
Paul
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Return action when a selected cell has focus.


When cell A8 (Range("A8").Select) is selected, a
designated Combo Box is visible.

I didnot understand what is designated Combo Box. How did you add th
combo box? please explain in detai

--
anilsolipura
-----------------------------------------------------------------------
anilsolipuram's Profile: http://www.excelforum.com/member.php...fo&userid=1627
View this thread: http://www.excelforum.com/showthread.php?threadid=31937

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Return action when a selected cell has focus.

Paul,

Use the SelectionChange event of the worksheet. In the
appropriate sheet's code module, use code like the following:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$A$8" Then
' do something
End If
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Paul" wrote in message
...
Hello All,

Code is needed to call a Combo box when a selected cell has
focus.

For example;
When cell A8 (Range("A8").Select) is
selected, a
designated Combo Box is visible.

What is the code to perform this task?

Thanks
Paul



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Return action when a selected cell has focus.


select the cell

from the Data Menu Validation

select "Lists" in Allow

Then in Source specify the range of values to be displayed in th
combobo

--
srpar
-----------------------------------------------------------------------
srparr's Profile: http://www.excelforum.com/member.php...fo&userid=1673
View this thread: http://www.excelforum.com/showthread.php?threadid=31937

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
return the row of any selected cell kim55 Excel Discussion (Misc queries) 3 November 15th 09 06:29 PM
Excel - Selected Cell highlight on focus loss. Jack Excel Discussion (Misc queries) 0 August 11th 08 10:03 PM
How do I undo an action when multiple sheets are selected? Jared Excel Worksheet Functions 0 August 15th 05 10:16 PM
How to return to selected cell? milt Excel Programming 2 February 17th 04 11:48 PM
Inputbox used to return value of selected cell D.S.[_2_] Excel Programming 5 October 25th 03 06:53 PM


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