Consulting

Results 1 to 2 of 2

Thread: Read from Excel file without opening Excel window

  1. #1

    Read from Excel file without opening Excel window

    Hi, lets say I have an external application e.g. Word or Outlook. I want to read from an Excel file but I don't want to open an Excel window because I want it to run in the background for UX purposes. How do I do this?

    E.g. give a sample program which runs in Microsoft Word, retrieves a value variable from an Excel file using VLookup in the background, then outputs the result in Word

  2. #2
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    You could, of course, automate a hidden Excel session. Alternatively, you could use ADODB, which avoids the need for the code to interact with Excel at all. See posts 2 & 23 in: https://www.msofficeforums.com/word-...drop-down.html
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •