Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Jaxson Brown   on Sep 29 In MS Office Category.

  
Question Answered By: Javairea Akram   on Sep 29

thanks for sharing how you do it, but I still can't get it to work. The
only other code  I have are the two lines below:

Dim myWB As Excel.Workbook
Set myWB = GetObject("D:\AORP Project\Form vlookup  Example.xls")

With the 2 statements above, I can reference a cell with the statement below
and it works great.

MsgBox myWB.Worksheets("Sheet1").Range("A2").Value

However, as soon as I try the application.vlookup....I get a run time error.
What am I missing? It has to be something very simple, but I am lost.

A perfect example of what I am trying to do is simply take the very simple
"Form VLookup Example.xls" file that contains about 5 lines of code located on
the Excel Group and make it work with a Word Userform instead of an Excel
Userform.

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Retriving data in a userform from a excel sheet Or get search suggestion and latest updates.


Tagged: