select data 4N hi_un fam

as show here

a1.PNG

here the file
29088861--2-_4n_hide_unhide_fam_are.xlsb
ADRIANA PACCOUNTING ASSISTANTAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
have this situation

3aaaa.PNG

1122.PNG
Martin LissOlder than dirtCommented:
You don't need a button.
29089013.xlsb
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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
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?
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
the bro  button

is not working
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
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
i post the situacion from the belong post
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Then what's not working?
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
is the bro button  column ID
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
have an bad reference

need be fixed
Martin LissOlder than dirtCommented:
It works now.
29089013.xlsb
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ADRIANA PACCOUNTING ASSISTANTAuthor Commented:
Great Job

Very  Best Experts !  Martin Liss  ,  Subodh Tiwari (Neeraj)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.