Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2018, 09:17 AM
licpegpon licpegpon is offline Retrieve a value from a closed file Windows 10 Retrieve a value from a closed file Office 2013
Novice
Retrieve a value from a closed file
 
Join Date: Nov 2018
Posts: 3
licpegpon is on a distinguished road
Default Retrieve a value from a closed file

Hello,



I need to retrieve values in another EXCEL file from an EXCEL file, but this one is closed.

I have used the function proposed by Silkyroad (https://excel.developpez.com/faq/ind...tClasseurFerme)

The function returns the result: [B] #VALUE! [/ B]

I found the following additional info, maybe? at the origin of my pb. Indeed Silkyroad mentions:

You must first enable the Microsoft ActiveX Data Objects x.x Library reference to use the examples in this tutorial.

In the macro editor:
Tools menu.
References.
Check the "Microsoft ActiveX Data Objects x.x Library" line.
Click the OK button to validate.

x.x depends on the version installed on your computer.


Some suggested examples allow you to manipulate the tables and need to enable the Microsoft ADO ext x.x for DLL and Security reference.


Knowing that I use MS Office 2013 (15.0.5075.1000) and that there are many references which ones should I activate? Perhaps another porblem ?

Thanks in advance.

Best regards.
Jérôme
Reply With Quote
  #2  
Old 11-05-2018, 07:04 PM
macropod's Avatar
macropod macropod is offline Retrieve a value from a closed file Windows 7 64bit Retrieve a value from a closed file Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could, of course, just use an external-reference formula.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 11-06-2018, 05:19 AM
licpegpon licpegpon is offline Retrieve a value from a closed file Windows 10 Retrieve a value from a closed file Office 2013
Novice
Retrieve a value from a closed file
 
Join Date: Nov 2018
Posts: 3
licpegpon is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
You could, of course, just use an external-reference formula.
Can you exploit ? I am beginner
Reply With Quote
  #4  
Old 11-06-2018, 01:48 PM
macropod's Avatar
macropod macropod is offline Retrieve a value from a closed file Windows 7 64bit Retrieve a value from a closed file Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

An external reference formula contains the path, filename, sheet name and cell reference of the cell whose value you want to retrieve. Such a formula typically looks like:
='C:\Users\UserName\Documents\[SourceWorkbook.xlsx]Sheet1'!$A$1
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 11-06-2018, 02:39 PM
licpegpon licpegpon is offline Retrieve a value from a closed file Windows 10 Retrieve a value from a closed file Office 2013
Novice
Retrieve a value from a closed file
 
Join Date: Nov 2018
Posts: 3
licpegpon is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
An external reference formula contains the path, filename, sheet name and cell reference of the cell whose value you want to retrieve. Such a formula typically looks like:
='C:\Users\UserName\Documents\[SourceWorkbook.xlsx]Sheet1'!$A$1
Ok. Thanks
Reply With Quote
Reply

Tags
active x, closed, reference

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Closed recovered file without saving - possible to retrieve? username1234 Word 0 05-20-2018 04:54 AM
What Causes Outlook to Continue Changing File Size While Closed? chasfh Outlook 2 04-14-2018 06:32 AM
Retrieve a value from a closed file Retrieve old file version Joven Office 3 03-24-2018 11:21 PM
Retrieve a value from a closed file After a specific file is closed, Excel asks again if I want to close the same file -- and ruins it HGilbert Excel 1 01-24-2017 08:37 AM
Retrieve a value from a closed file Importing Data from seperate closed excel file KingoftheKassel Excel Programming 1 06-10-2016 08:34 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft