Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Set string variable to word displayed in a combobox

I have a sheet which workouts the names of all other worksheets in another
workbook. A combobox is then populated with these names allowing the user
to select one of them. I need to set a string variable to the name the user
selects in the combobox so that the rest of my code with run from the data
on that sheet. How do I set a variable to hold the string value in the
combobox. Many thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Set string variable to word displayed in a combobox

Hi Graham

Use like
youvar = Sheet1.Combobox1.Text

use the text property of combo


Thanks
Xcelion


"Graham Whitehead" wrote:

I have a sheet which workouts the names of all other worksheets in another
workbook. A combobox is then populated with these names allowing the user
to select one of them. I need to set a string variable to the name the user
selects in the combobox so that the rest of my code with run from the data
on that sheet. How do I set a variable to hold the string value in the
combobox. Many 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
Trying to calculate # of times text string is displayed data_entry Excel Worksheet Functions 0 April 5th 10 10:17 PM
WORD-DELIMITED string vba macro for excel/word jackal2k6 Excel Programming 3 December 23rd 05 04:32 PM
How can a calculated value be displayed wiyhin a text string Furrukh Excel Discussion (Misc queries) 2 September 26th 05 08:35 PM
setting a range variable equal to the value of a string variable Pilgrim Excel Programming 2 July 1st 04 11:32 PM
How do I convert an integer variable to a string variable? dumbass Excel Programming 2 May 21st 04 07:34 PM


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