LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Listbox question

I have a listbox on a userform. The list displayed in the listbox comes from
a procedure (using .addItem). What I want to do is when an item from the list
is selected, that item is put in the active cell of the worksheet and I have
that working (code below). The problem I am having is that after I have made
a selection, I cannot update the next cell with the same value, I must select
another item from the list and many times I want to use the same item over
and over again. I have a cmdCloseFrm button on the form to stop the input
process.


Private Sub lstPickIt_Click()
Dim rngActive As String, stgrNew As String
rngActive = ActiveWindow.ActiveCell.Address
ActiveCell.Value = lstPickIt.Value
ActiveCell.Offset(1, 0).Range("A1").Select

End Sub
 
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
ListBox Question Bill[_30_] Excel Programming 1 September 23rd 06 06:39 PM
Just another listbox question . . . Jennifer Excel Programming 0 May 24th 06 05:41 AM
ListBox Question Tom Ogilvy Excel Programming 1 August 24th 04 05:43 PM
ListBox Question RK[_2_] Excel Programming 9 May 23rd 04 10:36 PM
listbox question Larry Levinson[_2_] Excel Programming 1 September 6th 03 11:43 PM


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