#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Macro code

I have created a marco so that i have a button on one page and when you click
on the button it will bring up the document that i have hidden which is
correct however i want it to go away once they click on the bottom that says
close and i want it to got back to being hidden. How do i do this???
--
Thank you, Brenda
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 221
Default Macro code

G'day Brenda

Can you post the code you are using

Regards
Mark.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Macro code

here is the code that i used to hide the file;
Sub UnhideExpenseCorpOffice3quarter()
Sheets("ExpenseCorpOffice3quarter").Visible = True
Sheets("ExpenseCorpOffice3quarter").Select
End Sub


Now when they click on the button to take them to the file that i have
hidden i would like to have a button on that page where if they click the
close button it will go back to be hidden. My reason for doing this is
because i am creating a spreadsheet for 4 of my reps and i would like for
them to be able to hit the button and it wouldn't keep all of the files open.
I was also thinking is there a way that they can enter a code and only be
able to open up their own spreadsheet i have composed just for them and not
to be able to open up the others?

--
Thank you, Brenda


"NoodNutt" wrote:

G'day Brenda

Can you post the code you are using

Regards
Mark.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 221
Default Macro code

Deb

On your Sheet "ExpenseCorpOffice3Quarter insert a MacroButton and assign the
following.

Assign another sheet name where you want the focus to go once the sheet has
been hidden.

Sub HideExpenseCorpOffice3quarter()
Sheets("ExpenseCorpOffice3quarter").Visible = False
Sheets("SomeOtherSheetName").Select
End Sub

HTH
Mark.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 221
Default Macro code

Ooooppppssss!

Not Deb.....DOH

Sorry Brenda...... :-)

Mark.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro code to dll and vba code trouble shoot. mario Excel Programming 0 May 15th 08 07:07 PM
Slow code when used as VBA code instead of macro (copying visible columns) [email protected] Excel Programming 3 April 2nd 07 05:26 PM
Can I use code/macro to change code/macro in an existing file? Scott Bedows Excel Programming 2 February 14th 07 05:50 AM
read macro code by vb code Francesco Geri Excel Programming 2 October 7th 05 10:24 AM
do anybody have a sample code for executing excel macro from vb code?<eom B Deepak Excel Programming 2 September 30th 05 09:59 AM


All times are GMT +1. The time now is 06:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"