Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default translate ws formula to vba code

Can someone please translate this worksheet formula to vba code?

=NameList,INDEX(NameColumn,MATCH(A2,BadgeColumn,0) )

The formula does what I need it to do, but I am trying to create a
userform with comboxes and need the second combobox to do this based on
information supplied in the first combobox.

Thank you in advance!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default translate ws formula to vba code

Activesheet.Evaluate("=NameList,INDEX(NameColumn,M ATCH(A2,BadgeColumn,0))")

either that or use FIND to find A2 in BadgeColumn, then pick up that cell in
NameColumn. What is NameList?

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"L Scholes" wrote in message
oups.com...
Can someone please translate this worksheet formula to vba code?

=NameList,INDEX(NameColumn,MATCH(A2,BadgeColumn,0) )

The formula does what I need it to do, but I am trying to create a
userform with comboxes and need the second combobox to do this based on
information supplied in the first combobox.

Thank you in advance!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default translate ws formula to vba code

I am trying to create two dependant comboboxes on a userform, cboOff
and cboNam. I currently have a data validation cell on my worksheet
with BadgeList as the named function to populate that list. Then, in
A2, I have the formula above to supply the name of the officer (from
NameList) with that badge number. I am trying to transfer over to
UserForm to get the same thing, I just can't get the comboboxes to be
dependant on one another???
Thank you!

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
How to translate a getpivotdata formula into a cell reference mbardon Excel Discussion (Misc queries) 0 February 11th 10 10:01 AM
Translate formula to english Mendz5 Excel Discussion (Misc queries) 3 August 23rd 06 09:59 AM
Could someone HELP TRANSLATE this simple psuedo code into MACRO please?! bxc2739 Excel Discussion (Misc queries) 3 April 27th 06 06:53 PM
can someone translate this formula pls nebrass Excel Worksheet Functions 2 April 12th 06 01:31 PM
Translate formula into VBA shternm Excel Discussion (Misc queries) 1 November 17th 05 08:45 PM


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