Code to display an Excel sheet (vba)

Solved
purspirit Posted messages 14 Status Membre -  
purspirit Posted messages 14 Status Membre -
Hello,
I am a beginner in Excel programming and I want to create an application.
My question for now:
How do I create a command to display an already existing worksheet?
And how do I close it?

Thank you in advance for your help.
Configuration: Windows XP Internet Explorer 6.0

3 réponses

gbinforme Posted messages 14930 Registration date   Status Contributeur Last intervention   4 742
 
Hello

how to create a command to display an already existing spreadsheet?

Sheets("my_sheet_to_display").activate

and how to close it?

Sheets("another_sheet_to_display").activate

--

Always calm
18