View Single Post
  #12   Report Post  
Posted to microsoft.public.excel.programming
Amber_D_Laws[_81_] Amber_D_Laws[_81_] is offline
external usenet poster
 
Posts: 1
Default INDEX/MATCH formula in VBA to populate text boxes


Great Idea Dave!!
I will incorporate this into the code. ;)



Dave Peterson Wrote:
And I might replace:
Textbox1.Value = res
with:

if iserror(res) then
textbox1.value = "No match" 'or whatever you want to see
else
textbox1.value = res
end if




Dave Peterson wrote:

dim res as variant

Amber_D_Laws wrote:

Great! However, I need to how to define the varible "res"

Tom Ogilvy Wrote:
res = Application.INDEX(Range("Catalog Listings!$B$3:$D$223"), _
Application.MATCH(Combobox1.Value, Range( _
"Catalog Listings!$B$3:$B$223"),0),1)

Textbox1.Value = res

--
Regards,
Tom Ogilvy



"Amber_D_Laws"

wrote in message

news:Amber_D_Laws.23c4wm_1140115201.9149@excelforu m-nospam.com...

In the original version of my quote module I was using the
INDEX/MATCH
formula below in combination with a drop down box to populate
several
other cells. I am now working in a multi-page user form, and I

would
to
do a similar action with text boxes.

The formula is as follows:
=INDEX('Catalog Listings'!$B$3:$D$223,MATCH(C30,'Catalog
Listings'!$B$3:$B$223,0),1)

So, the question is this. How do I INDEX/MATCH from a comboBox

in a
userform to several different text boxes (3 to be specific)?

As always any advice is appreciated.
Regards,
Amber


--
Amber_D_Laws


------------------------------------------------------------------------
Amber_D_Laws's Profile:
http://www.excelforum.com/member.php...o&userid=30012
View this thread:
http://www.excelforum.com/showthread...hreadid=513312


--
Amber_D_Laws

------------------------------------------------------------------------
Amber_D_Laws's Profile:

http://www.excelforum.com/member.php...o&userid=30012
View this thread:

http://www.excelforum.com/showthread...hreadid=513312

--

Dave Peterson


--

Dave Peterson



--
Amber_D_Laws
------------------------------------------------------------------------
Amber_D_Laws's Profile: http://www.excelforum.com/member.php...o&userid=30012
View this thread: http://www.excelforum.com/showthread...hreadid=513312