vba

Forum home » Delegate support and help forum » Microsoft VBA Training and help » VBA

VBA

resolvedResolved · Medium Priority · Version 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:

Empty The Clipboard with CutCopyMode

After each Copy/Paste operation in VBA, you should use the following line of code to empty the clipboard. This ensures that the computer memory doesn't overload:

ActiveSheet.Paste
Application.CutCopyMode = False

View all VBA hints and tips


Server loaded in 0.05 secs.