A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Listbox Selected Item to TextBox



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 13th 07, 09:07 AM posted to microsoft.public.outlook.program_vba
JP
external usenet poster
 
Posts: 30
Default Listbox Selected Item to TextBox

Hi. I have a listbox in a form. I will to put the selectedItem text of
listbox in a textbox, can I do that?, how?. Thanks a lot.



  #2  
Old June 13th 07, 02:55 PM posted to microsoft.public.outlook.program_forms,microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Listbox Selected Item to TextBox

VBA user form or Outlook custom form? You posted in both the VBA and forms groups, so we have no way of knowing. Multi-select or single-select list box?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"JP" wrote in message ...
Hi. I have a listbox in a form. I will to put the selectedItem text of
listbox in a textbox, can I do that?, how?. Thanks a lot.



  #3  
Old June 13th 07, 07:04 PM posted to microsoft.public.outlook.program_forms,microsoft.public.outlook.program_vba
JP
external usenet poster
 
Posts: 30
Default Listbox Selected Item to TextBox

I have a user form in Outlook. In it I have a ComboBox ( I was mistaken when
I said ListBox, excuse me ) with a multiple items. My objective is: when you
select an item of the ComboBox, pass the text in the item to a textbox in
the same form. Thanks.




"Sue Mosher [MVP-Outlook]" escribió en el mensaje
...
VBA user form or Outlook custom form? You posted in both the VBA and forms
groups, so we have no way of knowing. Multi-select or single-select list
box?

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"JP" wrote in message
...
Hi. I have a listbox in a form. I will to put the selectedItem text of
listbox in a textbox, can I do that?, how?. Thanks a lot.





  #4  
Old June 13th 07, 07:23 PM posted to microsoft.public.outlook.program_forms,microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Listbox Selected Item to TextBox

On a VBA user form, that would look like this:

Private Sub ComboBox1_Change()
TextBox1.Value = ComboBox1.Value
End Sub

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"JP" wrote in message ...
I have a user form in Outlook. In it I have a ComboBox ( I was mistaken when
I said ListBox, excuse me ) with a multiple items. My objective is: when you
select an item of the ComboBox, pass the text in the item to a textbox in
the same form. Thanks.

"Sue Mosher [MVP-Outlook]" escribió en el mensaje
...
VBA user form or Outlook custom form? You posted in both the VBA and forms
groups, so we have no way of knowing. Multi-select or single-select list
box?

"JP" wrote in message
...
Hi. I have a listbox in a form. I will to put the selectedItem text of
listbox in a textbox, can I do that?, how?. Thanks a lot.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Filling listbox on custom Contact item 1st page John E. Outlook - Using Forms 11 November 25th 06 04:22 AM
Personal Calendar Item copied to a selected public folder calendar Wanda Outlook and VBA 1 November 1st 06 07:57 PM
refresh the currently selected item? Jiho Han Outlook and VBA 4 June 2nd 06 03:23 PM
Populating listbox Syl Outlook and VBA 3 March 13th 06 09:42 PM
multiselect Listbox value Michael Anderson Outlook and VBA 2 February 13th 06 04:13 AM


All times are GMT +1. The time now is 09:14 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.