Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using Option buttons with vlookup

I have a couple of vlookups in my spreadsheet and based on which option
(radio) button the user selects is the vlookup table it goes to.

Any sample code out there for this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Using Option buttons with vlookup

I don't have sample code for this, but you might get more assistance if you
try someting and post the code for what you have.
--
HTH,
Barb Reinhardt



"syndr" wrote:

I have a couple of vlookups in my spreadsheet and based on which option
(radio) button the user selects is the vlookup table it goes to.

Any sample code out there for this?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Using Option buttons with vlookup

I added a couple of optionbuttons from the forms toolbar and placed a groupbox
(from the forms toolbar) around them.

I assigned the linked cell to A1.

Then i built a couple of tables (b1:c2 and D1:E2) and added a value to lookup to
A2.

This formula worked ok for me:
=IF(A1=0,"",VLOOKUP(A2,IF(A1=1,$B$1:$C$2,$D$1:$E$2 ),2,FALSE))

syndr wrote:

I have a couple of vlookups in my spreadsheet and based on which option
(radio) button the user selects is the vlookup table it goes to.

Any sample code out there for this?


--

Dave Peterson
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
Option Buttons/Radio Buttons John Calder New Users to Excel 7 May 16th 08 03:51 AM
Option Buttons HSalim[MVP] Excel Programming 7 November 9th 06 09:11 AM
Option buttons: How to get the selected option from a group? naddad Excel Programming 5 December 21st 05 05:09 PM
Navigating between option buttons is not selecting the option drhalter Excel Programming 1 June 3rd 05 02:28 PM
Navigating between option buttons is not selecting the option Gixxer_J_97[_2_] Excel Programming 4 June 2nd 05 02:50 PM


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