Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

vba

ResolvedVersion 2003

Trevor has attended:
Excel Advanced course
Excel VBA Intro Intermediate course
Access Intermediate course
Excel VBA Advanced course

VBA

Help!

Have used the two simplest macros below a lot and now one will not work. I cannot get the two worksheets back using "un hidden" - they are both there as cannot duplicate names for new sheets and can see them in VB editor. Any advice - thanks !

Trevor


Sub Very_Hidden()


Sheets("Intercompany").Visible = xlVeryHidden
Sheets("Lookups").Visible = xlVeryHidden


End Sub


Sub Un_Hidden()

Sheets("Intercompany").Visible = xlVeryHidden
Sheets("Lookups").Visible = xlVeryHidden

End Sub

RE: VBA

hi Trevor

Thanks for your question

This is hard to answer without seeing the workbook in question

Could you email me a copy so that I can give your question more detailed attention

my email is stephen@stl-training.co.uk

Regards

Stephen

RE: VBA

Stephen

Found a line of code on the web to 'unhide all' so the problem is solved.

Thanks anyway


Trevor

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

VBA tip:

Add A New Sheet at the end of the Workbook

To add a new sheet at the end of the workbook you need to count the sheets in the workbook using:

Sheets.Count

Then use this value as the rank of the sheet after which you want to add the new sheet:

Sheets.Add After:=Sheets(Sheets.Count)

View all VBA hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.