Hide columns code

J

jlclyde

Sheets("Layouts").Columns("A:IV").EntireColumn.Hidden = True


Sheets("Layouts").Columns(Range("C38:IV38").Find(Sheet1.Range("F4")).
_
Offset(1, 0).Value).EntireColumn.Hidden = False

Here is my code and I am trying to hide all of the columns except a
few. The few are assigned by looking up the value from
Sheet1.Range("F4") and looking them up on
Sheets("Layouts").Columns(range("C38:IV38") What is wrong with my
code?

Thanks,
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top