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


Thank you Tom for your help, if I could borrow your brain for one mor
thing.

I've been able to retrieve the values from multiple files usin
something like this:


Code
-------------------

Dim wb As Workbook
Application.ScreenUpdating = False
Set wb = Workbooks.Open("filename.xls", True, True)

Get the values, close the file, free up memory etc.


-------------------


Is there away to do the same thing using this ExecuteExcel4Macr
funtion? I grabbed the following off the net and it retrieves th
value of a specific cell without opening the file. Is it possible tha
instead of asking for a specific cell, ask for the value of the dro
down object? And if so, which way is best?


Code
-------------------

Dim arg As String
arg = "'" & path & "[" & file & "]" & sheet & "'!" & Range(ref).Range("A1").Address(, , xlR1C1)

GetValue = ExecuteExcel4Macro(arg)

-------------------


Thanks

--
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

I would think not. You can't do

=C:\Myfolder[Mybook.xls]Sheet1!OptionButton6.Value

as a formula in a cell. However, the xl4 macro language is richer that just
worksheet formulas, so I wouldn't be quick to say there is no way, but I am
not aware of any (but then it isn't something I have pursued, either).

--
Regards,
Tom Ogilvy



"entonne" wrote in message
...

Thank you Tom for your help, if I could borrow your brain for one more
thing.

I've been able to retrieve the values from multiple files using
something like this:


Code:
--------------------

Dim wb As Workbook
Application.ScreenUpdating = False
Set wb = Workbooks.Open("filename.xls", True, True)

Get the values, close the file, free up memory etc.


--------------------


Is there away to do the same thing using this ExecuteExcel4Macro
funtion? I grabbed the following off the net and it retrieves the
value of a specific cell without opening the file. Is it possible that
instead of asking for a specific cell, ask for the value of the drop
down object? And if so, which way is best?


Code:
--------------------

Dim arg As String
arg = "'" & path & "[" & file & "]" & sheet & "'!" &

Range(ref).Range("A1").Address(, , xlR1C1)

GetValue = ExecuteExcel4Macro(arg)

--------------------


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
keep source formatting is not an option in paste option button Tina Excel Discussion (Misc queries) 0 February 20th 06 09:58 PM
Retrieving Dropdown/Option Button Values entonne Excel Programming 1 October 5th 04 07:48 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 07:29 PM.

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"