Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Hidden Background Data File


Can you get Excel to open another Excel file linked to the first
automatically (preferably hidden and read only) in the background ?




--
PSM
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Hidden Background Data File

You could save the other workbook with its windows hidden, then either use a
macro to open it:

Option Explicit
dim OtherName as string
Sub Auto_Open()
dim OtherWkbk as workbook
dim OtherPath as string

otherpath = "C:\somefolder\" '<- note the trailing backslash
othername = "book99.xls"

set otherwkbk = nothing
on error resume next
set otherwkbk = workbooks(othername)
on error goto 0

if otherwkbk is nothing then
'it's not already open
on error resume next
set otherwkbk = workbooks.open(otherpath & othername, readonly:=true)
on error goto 0
if otherwkbk is nothing then
'still didn't open
msgbox otherwkbk & " wasn't opened!"
end if
end if
end sub
'close this workbook when the "real" file closes????
Sub Auto_Close()
on error resume next
workbooks(othername).close savechanges:=false
End sub

(Untested. Uncompiled. Watch for typos.)




PSM wrote:

Can you get Excel to open another Excel file linked to the first
automatically (preferably hidden and read only) in the background ?

--
PSM


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
All of worksheet's data is not visible (hidden), upon opening file Zane Lassiter Excel Discussion (Misc queries) 0 September 16th 08 03:39 PM
Hidden data causing huge file size Lancer940 Excel Discussion (Misc queries) 0 January 23rd 08 01:28 AM
How do I detect hidden worksheets or hidden data on a worksheet? Alice Excel Discussion (Misc queries) 4 August 24th 06 03:38 AM
Hidden data - hidden chart Brisbane Rob Charts and Charting in Excel 2 April 1st 06 09:51 PM
Hidden Data in linked file BAM Excel Worksheet Functions 0 March 10th 06 04:56 PM


All times are GMT +1. The time now is 06:57 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"