Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

How to access to a "Variable" situated in a closed workbook

$
0
0

Hi

Considering a Name declared in a Workbook and called "myName" - this Name belong to the workbook.names collection but do not correspond to any cell or range.

I'd like to access to this name without being obiged to open the workbook where it is declared but so far all what I have tried failed... :(

- have tried ADODB but seems to be limited to named ranges

- have tried with Application.ExecuteExcel4Macro but also seems to be working only for cells

---- Application.ExecuteExcel4Macro('C:\Path\[file.xls]Sheet1'!R1C1) is working

---- Application.ExecuteExcel4Macro('C:\Path\file.xls'!myName) is not working while I was expecting to :(

Woud be appreciated if someone could help me

Regards // Alain


Viewing all articles
Browse latest Browse all 2257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>