Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default Visible Property

I am running Excel 2003 and have a VBA code I have been using for years
without issue. I ran it today and got a Run Time Error 1004: Unable to set
the Visible Property of the Worksheet Class. When I hit the debugger button
it takes me to the line of code that tries to turn on and off (ture and
false) the visible property.

The VBA is in one excel workbook and when I click a button it runs in
another open excel workbook.

What has changed?


--
Thanks
Shawn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Visible Property

Hi,

I hate it when you hit the debugger button and it does that:)

Maybe someone has protected the workbook structure which would stop your
code hiding the sheet.

Mike

"Shawn" wrote:

I am running Excel 2003 and have a VBA code I have been using for years
without issue. I ran it today and got a Run Time Error 1004: Unable to set
the Visible Property of the Worksheet Class. When I hit the debugger button
it takes me to the line of code that tries to turn on and off (ture and
false) the visible property.

The VBA is in one excel workbook and when I click a button it runs in
another open excel workbook.

What has changed?


--
Thanks
Shawn

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Visible Property

Check your object value. If it cannot set the visible property, maybe the
object value is not what you think it is.

"Shawn" wrote:

I am running Excel 2003 and have a VBA code I have been using for years
without issue. I ran it today and got a Run Time Error 1004: Unable to set
the Visible Property of the Worksheet Class. When I hit the debugger button
it takes me to the line of code that tries to turn on and off (ture and
false) the visible property.

The VBA is in one excel workbook and when I click a button it runs in
another open excel workbook.

What has changed?


--
Thanks
Shawn

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Visible Property

Maybe you were trying to hide the only visible sheet in the workbook.

Shawn wrote:

I am running Excel 2003 and have a VBA code I have been using for years
without issue. I ran it today and got a Run Time Error 1004: Unable to set
the Visible Property of the Worksheet Class. When I hit the debugger button
it takes me to the line of code that tries to turn on and off (ture and
false) the visible property.

The VBA is in one excel workbook and when I click a button it runs in
another open excel workbook.

What has changed?

--
Thanks
Shawn


--

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
Help on Visible Property Edy[_2_] Excel Programming 7 April 26th 08 07:04 AM
VBA visible property miek Excel Programming 1 November 24th 05 04:47 AM
Visible property on Worksheets Russell Lucas Excel Programming 5 February 5th 04 03:26 PM
Visible Property Steve A[_2_] Excel Programming 1 January 5th 04 12:35 PM
.Visible Property Jollynicechap Excel Programming 1 July 8th 03 09:06 PM


All times are GMT +1. The time now is 08:09 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"