Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default How to hide a workbook using VBA

I am trying to open a workbook, manipulate it, copy several sheets to another
workbook and then close the opened workbook.

I am using ".Workbooks(WrkBkRef).Visible = False" but nothing happens. The
variable "(WrkBkRef)." works fine for other operations so I know its not that

Any Ideas
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default How to hide a workbook using VBA

use
workbooks(wrkbkref).activate
ActiveWindow.Visible = False


"Jeff" wrote:

I am trying to open a workbook, manipulate it, copy several sheets to another
workbook and then close the opened workbook.

I am using ".Workbooks(WrkBkRef).Visible = False" but nothing happens. The
variable "(WrkBkRef)." works fine for other operations so I know its not that

Any Ideas

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default How to hide a workbook using VBA

Read and consider your error messages. The error says "object doesn't
support this property or method" ? It's telling me that Visible is not an
option for a Workbook.

From there, search Help on Visible. It has an "applies to" list and you
whould find something useful there (hint: its "W" section).

HTH. Best wishes Harald

"Jeff" skrev i melding
...
I am trying to open a workbook, manipulate it, copy several sheets to

another
workbook and then close the opened workbook.

I am using ".Workbooks(WrkBkRef).Visible = False" but nothing happens.

The
variable "(WrkBkRef)." works fine for other operations so I know its not

that

Any Ideas



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
Hide Workbook aftamath77 Excel Discussion (Misc queries) 3 October 13th 08 04:29 PM
I cant hide a workbook Steve Excel Worksheet Functions 3 November 30th 04 01:05 AM
How to hide a workbook and to detect a hidden workbook in visual basic jn1971[_3_] Excel Programming 0 May 5th 04 10:08 PM
Hide a workbook Todd Huttenstine Excel Programming 2 April 28th 04 09:59 PM
Hide workbook Jesse[_4_] Excel Programming 2 December 6th 03 06:05 AM


All times are GMT +1. The time now is 01:56 AM.

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"