#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default Forms Group Box

Hi I used the following code from an old post below to hide group boxes and
it works a treat. (this has been placed in ThisWorkbook)

Sub HideAllGroupBoxes()
Dim Sh As Worksheet
Dim gBox As GroupBox
Set Sh = ActiveSheet

For Each gBox In Sh.GroupBoxes
gBox.Visible = False
Next gBox

End Sub


Question, when I open the workbook turning macro's off I cant then see the
groupboxes? I tried changing the statement above to gBox.Visible = True and
opening with macro's but I still cant see them,

So how do I go about seeing them again?

--
This post was created using recycled electrons!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Forms Group Box

If you open the workbook with macros disabled, then your code that unhides them
won't run.

Open the workbook with macros enabled and then make your change ("= true") and
then run the macro to see if that works.

Newbeetle wrote:

Hi I used the following code from an old post below to hide group boxes and
it works a treat. (this has been placed in ThisWorkbook)

Sub HideAllGroupBoxes()
Dim Sh As Worksheet
Dim gBox As GroupBox
Set Sh = ActiveSheet

For Each gBox In Sh.GroupBoxes
gBox.Visible = False
Next gBox

End Sub

Question, when I open the workbook turning macro's off I cant then see the
groupboxes? I tried changing the statement above to gBox.Visible = True and
opening with macro's but I still cant see them,

So how do I go about seeing them again?

--
This post was created using recycled electrons!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default Forms Group Box

Hi Dave,

I tried that but still can't see them, I can select and drag the radial
buttons out of the box, and when I put them back in the rough area they work
as before so the Groupbox is still there, has me baffled.
--
This post was created using recycled electrons!


"Dave Peterson" wrote:

If you open the workbook with macros disabled, then your code that unhides them
won't run.

Open the workbook with macros enabled and then make your change ("= true") and
then run the macro to see if that works.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 98
Default Forms Group Box

Hi Dave,

Its started to behave itself after a reboot, but for the life of me not sure
what the problem was, thanks for the advice as always.
--
This post was created using recycled electrons!


"Dave Peterson" wrote:

If you open the workbook with macros disabled, then your code that unhides them
won't run.

Open the workbook with macros enabled and then make your change ("= true") and
then run the macro to see if that works.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Forms Group Box

Glad you got it working--no matter how!

Newbeetle wrote:

Hi Dave,

Its started to behave itself after a reboot, but for the life of me not sure
what the problem was, thanks for the advice as always.
--
This post was created using recycled electrons!

"Dave Peterson" wrote:

If you open the workbook with macros disabled, then your code that unhides them
won't run.

Open the workbook with macros enabled and then make your change ("= true") and
then run the macro to see if that works.


--

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
Pivot table to calc by group xlcharlie Excel Discussion (Misc queries) 0 January 24th 06 11:40 PM
How do I hide the outline of a Forms Group Box? MadTodd Excel Discussion (Misc queries) 7 January 17th 05 06:45 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 02:46 PM
border color in forms group box Yvette Excel Discussion (Misc queries) 1 December 11th 04 12:13 AM
Group buttons from the forms toolbar GregR Excel Discussion (Misc queries) 1 December 7th 04 02:25 AM


All times are GMT +1. The time now is 10:25 PM.

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

About Us

"It's about Microsoft Excel"