Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Retrieving Dropdown/Option Button Values


I have a whole slew of excel files that contain data that I want t
compile into a single excel sheet. I've been able to automaticall
grab the values in each file, but am having a terrible time trying t
figure out how to grab the values of form controls. To be precise
few option buttons groups and drop down controls. I know you could d
a cell link then just get the value from there, but unfortunately th
designer didn't do that and I have over a hundred files. I'm prett
much lost. Is there any way to reference the value something like...

excelfile.worksheet.dropdown1.value

I've looked forever trying to find something, but I can't fin
anything. If anyone can point me in the right direction it would b
much appreciated.
Thank

--
entonn
-----------------------------------------------------------------------
entonne's Profile: http://www.excelforum.com/member.php...fo&userid=1503
View this thread: http://www.excelforum.com/showthread.php?threadid=26656

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Retrieving Dropdown/Option Button Values

for each drpdwn in Activesheet.Dropdowns
svaldrop = drpdwn.Value
' record the result
Next
for each obtn in Activesheet.OptionButtons
if obtn.Value = xlOn then
sValoption = oBtn.Caption
' record the result.
end if
Next

--
Regards,
Tom Ogilvy

"entonne" wrote in message
...

I have a whole slew of excel files that contain data that I want to
compile into a single excel sheet. I've been able to automatically
grab the values in each file, but am having a terrible time trying to
figure out how to grab the values of form controls. To be precise a
few option buttons groups and drop down controls. I know you could do
a cell link then just get the value from there, but unfortunately the
designer didn't do that and I have over a hundred files. I'm pretty
much lost. Is there any way to reference the value something like...

excelfile.worksheet.dropdown1.value

I've looked forever trying to find something, but I can't find
anything. If anyone can point me in the right direction it would be
much appreciated.
Thanks


--
entonne
------------------------------------------------------------------------
entonne's Profile:

http://www.excelforum.com/member.php...o&userid=15039
View this thread: http://www.excelforum.com/showthread...hreadid=266568



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
dropdown with option aditya Excel Discussion (Misc queries) 1 May 26th 09 11:14 AM
Help with Comparing values and retrieving values in Excel!!!!!! [email protected] Excel Worksheet Functions 1 November 17th 06 12:21 AM
How do I change the cell colour per dropdown option? Emma962 Excel Discussion (Misc queries) 1 August 11th 06 03:06 PM
keep source formatting is not an option in paste option button Tina Excel Discussion (Misc queries) 0 February 20th 06 09:58 PM
Changing Option button values JT[_2_] Excel Programming 0 September 7th 04 07:16 PM


All times are GMT +1. The time now is 08:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"