×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Closing worksheets

Closing worksheets

Closing worksheets

(OP)
I have a series of worksheets that I can open from a main switchboard similar to acces through command buttons. How can close a worksheet and return to the main sheet without it completely closing excel. The other sheets open through vba commands.

RE: Closing worksheets

It sounds like you are making a "switchboard" to replace the sheet tabs.

One simple method (instead of hiding the shets) is to turn off the sheet tabs under <tools><options>.

On each sub sheet just add a button similar to the ones on the "Switchboard" each referencing back to the "switchboard" sheet name, e.g. the code would be.

Sub GoToFrontsheet()
    Sheets("Frontsheet").Select
End Sub


Hope this helps
Regards
Mogens

RE: Closing worksheets

Similarly, you can close any workbook (easiest if you know its name) by, for example,
Workbooks("BOOK1.XLS").Close SaveChanges:=False

Obviously, you should replace BOOK1.XLS by the name of the workbook you're closing.

Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.

RE: Closing worksheets

(OP)
Thanks guys

I think that answers my question.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources