Avatar of ADRIANA P
ADRIANA P
Flag for United States of America asked on

need hide unhide column

have data in columns  from column like this
111222.PNG
then need an button to hide
columns
111222AAA.png

the sequence will continues all over the worksheet
Ad_76984--1-.xlsm
Microsoft OfficeMicrosoft ExcelMicrosoft ApplicationsProgrammingVBA

Avatar of undefined
Last Comment
ADRIANA P

8/22/2022 - Mon
SOLUTION
Shums Faruk

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ADRIANA P

ASKER
Shums Thanks expert

i have an situation
 need to hide all columns  in blue color area not just the  the firts
all over the worksheet  ( will be added as needed)
Martin Liss

I wasn't sure where you wanted the button, but you can drag it where ever you want it.
29075969.xlsm
ADRIANA P

ASKER
like these111222AAA.png
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
ADRIANA P

ASKER
Martin Liss   Thanks !
Glad to see you back

need to hide or unhide

but an sequence will be  the sequence  begings in column b then 31 columns sequence follow
then need to hide or unhide  from 26 to 31 in the sequence
ADRIANA P

ASKER
shums great job !
 but need to have the sequence  all over the worksheet
Martin Liss

See if this is better.
29075969a.xlsm
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Martin Liss

If you don't want column "A" hidden then use this one.
29075969b.xlsm
Martin Liss

Note that in post ID: 42419679 I had the wrong file. I corrected it now.
ADRIANA P

ASKER
Martin  after i hit the  button i get this

11223344.PNG
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Martin Liss

Uncomment the first "For lngCol = 1 to...." line.
ADRIANA P

ASKER
111222AAAbbbbccc.png
ADRIANA P

ASKER
Martin i dont understand  this

how i do that ??

4444.PNG
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Martin Liss

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ADRIANA P

ASKER
Shums  Great  Expert best Expert !!

Martin Liss  Great JOB expert