+ Reply to Thread
Results 1 to 3 of 3

Can I use vba code to get a value of a cell in other workbook without opening the workbook

  1. #1
    Forum Contributor
    Join Date
    02-18-2014
    Location
    hk
    MS-Off Ver
    Excel 365
    Posts
    105

    Can I use vba code to get a value of a cell in other workbook without opening the workbook

    Hi All,

    I can use linking in excel to get the cell of external workbook without opening it.
    But can I do that in vba? Thanks.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,179

    Re: Can I use vba code to get a value of a cell in other workbook without opening the work

    Hi, mrkhchan,

    maybe have a look at the sample given at Copy a range from closed workbooks (ADO).

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Forum Contributor
    Join Date
    02-18-2014
    Location
    hk
    MS-Off Ver
    Excel 365
    Posts
    105

    Re: Can I use vba code to get a value of a cell in other workbook without opening the work

    Hi HaHoBe,

    Thanks for your information.
    Quote Originally Posted by HaHoBe View Post
    Hi, mrkhchan,

    maybe have a look at the sample given at Copy a range from closed workbooks (ADO).

    Ciao,
    Holger

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Opening new workbook and pasting values into current workbook - code issues
    By Stew1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2014, 07:56 AM
  2. [SOLVED] Code to cut cell from one workbook, close same workbook, and paste in different workbook
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 03-13-2014, 04:01 PM
  3. [SOLVED] Opening A Workbook Then Run Code
    By kapeller in forum Excel General
    Replies: 3
    Last Post: 12-29-2012, 08:31 PM
  4. VBA code to goto first empty cell on opening a workbook.
    By tony0710 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2009, 01:29 PM
  5. [SOLVED] run code on opening workbook and apply code to certain sheets
    By Jane in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-08-2005, 05:05 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1