Thread: Forms Group Box
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
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