Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / August 2007

Tip: Looking for answers? Try searching our database.

2 auick questions please

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joanne - 20 Aug 2007 20:54 GMT
1. activewindow.selectedsheets.visible = false
I know this will hide an active worksheet.
What I would like to know is how to hide the worksheet upon opening the
workbook.

2. Workbooks.Open spath & fname
opens my workbook
What I need to know is the syntax for how to update the links in fname.
fname.links.update??

Thanks for your help, as always I don't know where I'd be without yas.
Joanne
Susan - 20 Aug 2007 21:02 GMT
1.
public sub auto_open()
activewindow.selectedsheets.visible=false
end sub

2.
i don't know.
:)
susan

> 1. activewindow.selectedsheets.visible = false
> I know this will hide an active worksheet.
[quoted text clipped - 8 lines]
> Thanks for your help, as always I don't know where I'd be without yas.
> Joanne
Susan - 20 Aug 2007 21:05 GMT
actually, you'd have to select the proper sheet, or just refer to it
by name.

public sub auto_open()
dim ws as worksheet
set ws = activeworkbook.worksheets(1)
ws.visible=false
end sub

> 1. activewindow.selectedsheets.visible = false
> I know this will hide an active worksheet.
[quoted text clipped - 8 lines]
> Thanks for your help, as always I don't know where I'd be without yas.
> Joanne
Vergel Adriano - 20 Aug 2007 23:34 GMT
Joanne,

#2. To update the links when you open the file fname:

Workbooks.Open Filename:=fname, UpdateLinks:=1

Lookup the Open method in the VBA Help to see possible values for the
UpdateLinks parameter..

Signature

Hope that helps.

Vergel Adriano

> 1. activewindow.selectedsheets.visible = false
> I know this will hide an active worksheet.
[quoted text clipped - 8 lines]
> Thanks for your help, as always I don't know where I'd be without yas.
> Joanne
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.