• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 66
  • Last Modified:

select data 4N hi_un fam

as show here

a1.PNG

here the file
29088861--2-_4n_hide_unhide_fam_are.xlsb
0
ADRIANA P
Asked:
ADRIANA P
  • 8
  • 4
  • 2
2 Solutions
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Please give this a try...

Code on Sheet1 Module:
Public IsHidden As Boolean
Private Sub CommandButton1_Click()
If Not IsHidden Then
    IsHidden = True
    Columns("IX:JF").Hidden = True
    Sheet1.CommandButton1.Caption = "Unhide"
Else
    IsHidden = False
    Columns("IX:JF").Hidden = False
    Sheet1.CommandButton1.Caption = "Hide"
End If
End Sub

Open in new window

29088861--2-_4n_hide_unhide_fam_are.xlsb
1
 
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
have this situation

3aaaa.PNG

1122.PNG
0
 
Martin LissOlder than dirtCommented:
You don't need a button.
29089013.xlsb
1
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
Martin

i try active the group option like you teach me

but when working with the file i put alredy 2 group

and don't lety me add the area to a new one

i don't  know why

that the reason i need an button for

when working with the  final file
0
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Sorry! I don't understand what is not working.
As per your description, it is hiding and unhiding the columns IX:JF. Isn't it?
1
 
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
the bro  button

is not working
0
 
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
Sorry! I don't understand what is not working.
As per your description, it is hiding an unhiding the columns IX:JF. Isn't it?

that's working
0
 
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
i post the situacion from the belong post
0
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Then what's not working?
1
 
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
is the bro button  column ID
0
 
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
have an bad reference

need be fixed
0
 
Martin LissOlder than dirtCommented:
It works now.
29089013.xlsb
1
 
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
1
 
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
Great Job

Very  Best Experts !  Martin Liss  ,  Subodh Tiwari (Neeraj)
1
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 8
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now