A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Hidden Tabs appear when I reopen the file



 
 
Thread Tools Display Modes
  #1  
Old October 22nd, 2008, 04:42 PM posted to microsoft.public.excel.setup
Brenda
external usenet poster
 
Posts: 272
Default Hidden Tabs appear when I reopen the file

I am working in Excel 2003. I am not the designer of the program and there
are a lot of formulas, links etc in this program. However, i have placed
buttons from the forms toolbar and hide the tabs located at the bottom. In
otherwords they click on the bottom and it brings up the tab i hide and on
that page another button that says take back to the home page and hides that
tab again. My problem is when i close out the program and go back in the tabs
are back at the bottom and i have to hide them to make the buttons work. How
can i get them to stay hidden when the program is opened.
--
Thank you, Brenda
  #2  
Old October 22nd, 2008, 06:11 PM posted to microsoft.public.excel.setup
Roger Govier[_3_]
external usenet poster
 
Posts: 2,297
Default Hidden Tabs appear when I reopen the file

Hi Brenda

Show the code you are using to do this, and somebody may be able to help.

--
Regards
Roger Govier

"Brenda" wrote in message
...
I am working in Excel 2003. I am not the designer of the program and there
are a lot of formulas, links etc in this program. However, i have placed
buttons from the forms toolbar and hide the tabs located at the bottom. In
otherwords they click on the bottom and it brings up the tab i hide and on
that page another button that says take back to the home page and hides
that
tab again. My problem is when i close out the program and go back in the
tabs
are back at the bottom and i have to hide them to make the buttons work.
How
can i get them to stay hidden when the program is opened.
--
Thank you, Brenda


  #3  
Old October 22nd, 2008, 06:51 PM posted to microsoft.public.excel.setup
Brenda
external usenet poster
 
Posts: 272
Default Hidden Tabs appear when I reopen the file

As i said in my email i didn't make this program i am taking over it and have
added some of my own things. I don't know what type of code i would even put
out there for someone to help me. here is the code that was entered on this
particular page. its a long one.
Private Sub Workbook_Open()
'check for solver
If (CheckSolver = False) Then
MsgBox "Solver Add-In is not installed, you will not be able to
solve least costing on the Auto-Balance sheet. Consult Excel help for
information on installing the Solver Add-In."
End If
'load the expiry date from cell Expiration!B1
Expiry = getExpirationDate
rightNow = Date
'if we have expired, or moved to a different machine
If (Expiry = Empty Or rightNow Expiry Or Not
IsDataValid(getRegistrationNumber, getExpirationDate)) Then
showExpiryDialog
End If
'load the workbook
loadWorkbook
End Sub

Private Sub loadWorkbook()
Application.ScreenUpdating = False
changeVisibility InstructionsSheet, xlSheetVisible
InstructionsSheet.Activate
changeVisibility RequirementsSheet, xlSheetVisible
changeVisibility EvaluateSheet, xlSheetVisible
changeVisibility AutoBalanceSheet, xlSheetVisible
changeVisibility HerdDescriptionSheet, xlSheetVisible
changeVisibility IngredientsSheet, xlSheetVisible
changeVisibility MixSheet, xlSheetVisible
changeVisibility ReportsEVSheet, xlSheetVisible
changeVisibility ReportsLCSheet, xlSheetVisible
changeVisibility ErrorSheet, xlSheetVeryHidden
Application.ScreenUpdating = True
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.ScreenUpdating = False
resetToStart
Geminator.Save
Application.ScreenUpdating = True
End Sub

Private Sub changeVisibility(Sheet As Worksheet, v As Integer)
unProtect "AmIn0"
Sheet.unProtect "AmIn0"
Sheet.Visible = v
Sheet.Protect "AmIn0"
Protect "AmIn0"
End Sub

Private Sub resetToStart()
changeVisibility ErrorSheet, xlSheetVisible
changeVisibility AutoBalanceSheet, xlSheetVeryHidden
changeVisibility EvaluateSheet, xlSheetVeryHidden
changeVisibility HerdDescriptionSheet, xlSheetVeryHidden
changeVisibility IngredientsSheet, xlSheetVeryHidden
changeVisibility MixSheet, xlSheetVeryHidden
changeVisibility InstructionsSheet, xlSheetVeryHidden
changeVisibility ReportsEVSheet, xlSheetVeryHidden
changeVisibility ReportsLCSheet, xlSheetVeryHidden
changeVisibility RequirementsSheet, xlSheetVeryHidden
setUseCount getUseCount + 1
If (getFirstUsed = Empty) Then
setFirstUsed Date
End If
Geminator.Protect "AmIn0"
End Sub

Private Sub showExpiryDialog()
registrationForm.regTextBox.SetFocus
registrationForm.regTextBox.SelStart = 0
registrationForm.regTextBox.SelLength =
Len(registrationForm.regTextBox.Text)
registrationForm.Show
End Sub


Private Sub Scrollarea()
Sheets("HerdDescription").Scrollarea = "24R:13C"
End Sub

--
Thank you, Brenda


"Roger Govier" wrote:

Hi Brenda

Show the code you are using to do this, and somebody may be able to help.

--
Regards
Roger Govier

"Brenda" wrote in message
...
I am working in Excel 2003. I am not the designer of the program and there
are a lot of formulas, links etc in this program. However, i have placed
buttons from the forms toolbar and hide the tabs located at the bottom. In
otherwords they click on the bottom and it brings up the tab i hide and on
that page another button that says take back to the home page and hides
that
tab again. My problem is when i close out the program and go back in the
tabs
are back at the bottom and i have to hide them to make the buttons work.
How
can i get them to stay hidden when the program is opened.
--
Thank you, Brenda



  #4  
Old October 22nd, 2008, 07:17 PM posted to microsoft.public.excel.setup
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Hidden Tabs appear when I reopen the file

When I hide the tabs in xl2003 and save the workbook with that window's tabs
hidden, then the tabs are hidden when I reopen the workbook.

I don't have a guess why they're shown for you.

But maybe you could add a line in your workbook_open procedure to hide the tabs:

Me.DisplayWorkbookTabs = False

(Me refers to the object that owns the code--in this case, it's the workbook
itself.)



Brenda wrote:

I am working in Excel 2003. I am not the designer of the program and there
are a lot of formulas, links etc in this program. However, i have placed
buttons from the forms toolbar and hide the tabs located at the bottom. In
otherwords they click on the bottom and it brings up the tab i hide and on
that page another button that says take back to the home page and hides that
tab again. My problem is when i close out the program and go back in the tabs
are back at the bottom and i have to hide them to make the buttons work. How
can i get them to stay hidden when the program is opened.
--
Thank you, Brenda


--

Dave Peterson
  #5  
Old October 22nd, 2008, 07:34 PM posted to microsoft.public.excel.setup
Brenda
external usenet poster
 
Posts: 272
Default Hidden Tabs appear when I reopen the file

Did you see the code i posted before your response? Any clue with all of
those codes i didn't enter those they were there when i got this program
should i enter the code you mentioned at the end of what i pasted below.
--
Thank you, Brenda


"Dave Peterson" wrote:

When I hide the tabs in xl2003 and save the workbook with that window's tabs
hidden, then the tabs are hidden when I reopen the workbook.

I don't have a guess why they're shown for you.

But maybe you could add a line in your workbook_open procedure to hide the tabs:

Me.DisplayWorkbookTabs = False

(Me refers to the object that owns the code--in this case, it's the workbook
itself.)



Brenda wrote:

I am working in Excel 2003. I am not the designer of the program and there
are a lot of formulas, links etc in this program. However, i have placed
buttons from the forms toolbar and hide the tabs located at the bottom. In
otherwords they click on the bottom and it brings up the tab i hide and on
that page another button that says take back to the home page and hides that
tab again. My problem is when i close out the program and go back in the tabs
are back at the bottom and i have to hide them to make the buttons work. How
can i get them to stay hidden when the program is opened.
--
Thank you, Brenda


--

Dave Peterson

  #6  
Old October 22nd, 2008, 07:47 PM posted to microsoft.public.excel.setup
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Hidden Tabs appear when I reopen the file

I saw the code and didn't notice anything in there that would change the
visibility of the tabs.

But there were lots of calls to a couple of macros that may do something that
you didn't share.

Try looking through those procedures to see if you have any
"DisplayWorkbookTabs" in them.

Heck, maybe searching the entire workbook's project for that would be
worthwhile.

=====
But if you want to take the easy route (I would!)...

Just try:

....
loadWorkbook
Me.DisplayWorkbookTabs = False
End Sub

But I don't know what LoadWorkbook does. Maybe that line of code really belongs
in that procedure????



Brenda wrote:

Did you see the code i posted before your response? Any clue with all of
those codes i didn't enter those they were there when i got this program
should i enter the code you mentioned at the end of what i pasted below.
--
Thank you, Brenda

"Dave Peterson" wrote:

When I hide the tabs in xl2003 and save the workbook with that window's tabs
hidden, then the tabs are hidden when I reopen the workbook.

I don't have a guess why they're shown for you.

But maybe you could add a line in your workbook_open procedure to hide the tabs:

Me.DisplayWorkbookTabs = False

(Me refers to the object that owns the code--in this case, it's the workbook
itself.)



Brenda wrote:

I am working in Excel 2003. I am not the designer of the program and there
are a lot of formulas, links etc in this program. However, i have placed
buttons from the forms toolbar and hide the tabs located at the bottom. In
otherwords they click on the bottom and it brings up the tab i hide and on
that page another button that says take back to the home page and hides that
tab again. My problem is when i close out the program and go back in the tabs
are back at the bottom and i have to hide them to make the buttons work. How
can i get them to stay hidden when the program is opened.
--
Thank you, Brenda


--

Dave Peterson


--

Dave Peterson
  #7  
Old October 22nd, 2008, 08:12 PM posted to microsoft.public.excel.setup
Brenda
external usenet poster
 
Posts: 272
Default Hidden Tabs appear when I reopen the file

how would i bring up the entire worksheet projects?
--
Thank you, Brenda


"Dave Peterson" wrote:

I saw the code and didn't notice anything in there that would change the
visibility of the tabs.

But there were lots of calls to a couple of macros that may do something that
you didn't share.

Try looking through those procedures to see if you have any
"DisplayWorkbookTabs" in them.

Heck, maybe searching the entire workbook's project for that would be
worthwhile.

=====
But if you want to take the easy route (I would!)...

Just try:

....
loadWorkbook
Me.DisplayWorkbookTabs = False
End Sub

But I don't know what LoadWorkbook does. Maybe that line of code really belongs
in that procedure????



Brenda wrote:

Did you see the code i posted before your response? Any clue with all of
those codes i didn't enter those they were there when i got this program
should i enter the code you mentioned at the end of what i pasted below.
--
Thank you, Brenda

"Dave Peterson" wrote:

When I hide the tabs in xl2003 and save the workbook with that window's tabs
hidden, then the tabs are hidden when I reopen the workbook.

I don't have a guess why they're shown for you.

But maybe you could add a line in your workbook_open procedure to hide the tabs:

Me.DisplayWorkbookTabs = False

(Me refers to the object that owns the code--in this case, it's the workbook
itself.)



Brenda wrote:

I am working in Excel 2003. I am not the designer of the program and there
are a lot of formulas, links etc in this program. However, i have placed
buttons from the forms toolbar and hide the tabs located at the bottom. In
otherwords they click on the bottom and it brings up the tab i hide and on
that page another button that says take back to the home page and hides that
tab again. My problem is when i close out the program and go back in the tabs
are back at the bottom and i have to hide them to make the buttons work. How
can i get them to stay hidden when the program is opened.
--
Thank you, Brenda

--

Dave Peterson


--

Dave Peterson

  #8  
Old October 22nd, 2008, 08:37 PM posted to microsoft.public.excel.setup
Brenda
external usenet poster
 
Posts: 272
Default Hidden Tabs appear when I reopen the file

Dave sorry to be a pain your suggestion worked. however when i went onto
other worksheets in the same document and clicked on the buttons they gave me
an error
compile error in hidden module when it first brings up the file i get the
same error any suggestions?
--
Thank you, Brenda


"Dave Peterson" wrote:

I saw the code and didn't notice anything in there that would change the
visibility of the tabs.

But there were lots of calls to a couple of macros that may do something that
you didn't share.

Try looking through those procedures to see if you have any
"DisplayWorkbookTabs" in them.

Heck, maybe searching the entire workbook's project for that would be
worthwhile.

=====
But if you want to take the easy route (I would!)...

Just try:

....
loadWorkbook
Me.DisplayWorkbookTabs = False
End Sub

But I don't know what LoadWorkbook does. Maybe that line of code really belongs
in that procedure????



Brenda wrote:

Did you see the code i posted before your response? Any clue with all of
those codes i didn't enter those they were there when i got this program
should i enter the code you mentioned at the end of what i pasted below.
--
Thank you, Brenda

"Dave Peterson" wrote:

When I hide the tabs in xl2003 and save the workbook with that window's tabs
hidden, then the tabs are hidden when I reopen the workbook.

I don't have a guess why they're shown for you.

But maybe you could add a line in your workbook_open procedure to hide the tabs:

Me.DisplayWorkbookTabs = False

(Me refers to the object that owns the code--in this case, it's the workbook
itself.)



Brenda wrote:

I am working in Excel 2003. I am not the designer of the program and there
are a lot of formulas, links etc in this program. However, i have placed
buttons from the forms toolbar and hide the tabs located at the bottom. In
otherwords they click on the bottom and it brings up the tab i hide and on
that page another button that says take back to the home page and hides that
tab again. My problem is when i close out the program and go back in the tabs
are back at the bottom and i have to hide them to make the buttons work. How
can i get them to stay hidden when the program is opened.
--
Thank you, Brenda

--

Dave Peterson


--

Dave Peterson

  #9  
Old October 22nd, 2008, 10:33 PM posted to microsoft.public.excel.setup
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Hidden Tabs appear when I reopen the file

Glad you got part of your problem fixed.

I'm not sure when you get the error.

Do you get it when you open the workbook with the change you just made?

If yes, then maybe you changed something that you shouldn't have.

If you're getting the error when you click on the button, then it's not this
changed that caused the trouble. If the tabs or hidden or shown, the code
would work (or blow up) the same way.

To help debug the problem, you're going to have to find the workbook that's
causing the trouble. Then unprotect that workbook's project (in the VBE). And
save that (as a new copy).

Then close and reopen that new workbook. The project won't be protected, so
you'll get an option to debug. And that should point at the line of code that
caused the trouble.

Then fix that workbook and test it out. If it works fine, you can save as the
old name -- or fix the real workbook's project.


Brenda wrote:

Dave sorry to be a pain your suggestion worked. however when i went onto
other worksheets in the same document and clicked on the buttons they gave me
an error
compile error in hidden module when it first brings up the file i get the
same error any suggestions?
--
Thank you, Brenda

"Dave Peterson" wrote:

I saw the code and didn't notice anything in there that would change the
visibility of the tabs.

But there were lots of calls to a couple of macros that may do something that
you didn't share.

Try looking through those procedures to see if you have any
"DisplayWorkbookTabs" in them.

Heck, maybe searching the entire workbook's project for that would be
worthwhile.

=====
But if you want to take the easy route (I would!)...

Just try:

....
loadWorkbook
Me.DisplayWorkbookTabs = False
End Sub

But I don't know what LoadWorkbook does. Maybe that line of code really belongs
in that procedure????



Brenda wrote:

Did you see the code i posted before your response? Any clue with all of
those codes i didn't enter those they were there when i got this program
should i enter the code you mentioned at the end of what i pasted below.
--
Thank you, Brenda

"Dave Peterson" wrote:

When I hide the tabs in xl2003 and save the workbook with that window's tabs
hidden, then the tabs are hidden when I reopen the workbook.

I don't have a guess why they're shown for you.

But maybe you could add a line in your workbook_open procedure to hide the tabs:

Me.DisplayWorkbookTabs = False

(Me refers to the object that owns the code--in this case, it's the workbook
itself.)



Brenda wrote:

I am working in Excel 2003. I am not the designer of the program and there
are a lot of formulas, links etc in this program. However, i have placed
buttons from the forms toolbar and hide the tabs located at the bottom. In
otherwords they click on the bottom and it brings up the tab i hide and on
that page another button that says take back to the home page and hides that
tab again. My problem is when i close out the program and go back in the tabs
are back at the bottom and i have to hide them to make the buttons work. How
can i get them to stay hidden when the program is opened.
--
Thank you, Brenda

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
  #10  
Old October 22nd, 2008, 10:40 PM posted to microsoft.public.excel.setup
Roger Govier[_3_]
external usenet poster
 
Posts: 2,297
Default Hidden Tabs appear when I reopen the file

Hi Brenda

I think I would just rem out the line
' loadWorkbook
in the Auto_open procedure
--
Regards
Roger Govier

"Brenda" wrote in message
...
Dave sorry to be a pain your suggestion worked. however when i went onto
other worksheets in the same document and clicked on the buttons they gave
me
an error
compile error in hidden module when it first brings up the file i get the
same error any suggestions?
--
Thank you, Brenda


"Dave Peterson" wrote:

I saw the code and didn't notice anything in there that would change the
visibility of the tabs.

But there were lots of calls to a couple of macros that may do something
that
you didn't share.

Try looking through those procedures to see if you have any
"DisplayWorkbookTabs" in them.

Heck, maybe searching the entire workbook's project for that would be
worthwhile.

=====
But if you want to take the easy route (I would!)...

Just try:

....
loadWorkbook
Me.DisplayWorkbookTabs = False
End Sub

But I don't know what LoadWorkbook does. Maybe that line of code really
belongs
in that procedure????



Brenda wrote:

Did you see the code i posted before your response? Any clue with all
of
those codes i didn't enter those they were there when i got this
program
should i enter the code you mentioned at the end of what i pasted
below.
--
Thank you, Brenda

"Dave Peterson" wrote:

When I hide the tabs in xl2003 and save the workbook with that
window's tabs
hidden, then the tabs are hidden when I reopen the workbook.

I don't have a guess why they're shown for you.

But maybe you could add a line in your workbook_open procedure to
hide the tabs:

Me.DisplayWorkbookTabs = False

(Me refers to the object that owns the code--in this case, it's the
workbook
itself.)



Brenda wrote:

I am working in Excel 2003. I am not the designer of the program
and there
are a lot of formulas, links etc in this program. However, i have
placed
buttons from the forms toolbar and hide the tabs located at the
bottom. In
otherwords they click on the bottom and it brings up the tab i hide
and on
that page another button that says take back to the home page and
hides that
tab again. My problem is when i close out the program and go back
in the tabs
are back at the bottom and i have to hide them to make the buttons
work. How
can i get them to stay hidden when the program is opened.
--
Thank you, Brenda

--

Dave Peterson


--

Dave Peterson

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:05 PM.


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