Web Toolbar

JoyC

Board Regular
Joined
Aug 28, 2009
Messages
91
This is a bit of a problem which is driving me crazy.

I have multiple workbooks linked with hyperlinks, all of which I have applied some VBA to go to Full Screen and hide all toolbars (including the Web Toolbar) when the workbook opens.

This is working fine with the exception of the Web Toolbar which will not hide. I've tried this on Workbook open and on Sheet activate and yet it still keeps coming up.

With Application
.DisplayFullScreen = True
.CommandBars("Web").Visible = False
End With

When I run the code from the VBA window it works. Could someone tell me what I'm doing wrong please?

Thank you.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hello,

Please insert complete code you are having the troubles with, and please insert:

Rich (BB code):
Rich (BB code):
 before the first letter of the code, and
after the last letter of the code.

Thank you.
 
Upvote 0
Thanks for your response, this is the entire block of code:

Code:
Private Sub workbook_open()
 
'   Checking User Name and authority of access.
    Application.ScreenUpdating = False
    Sheets("Blank").Select
 
    Sheets("Access Levels").Cells(1, 2) = Application.UserName
    Sheets("Access Levels").Cells(1, 4) = Application.UserLibraryPath
    If Sheets("Access Levels").Range("C9") = "Restricted" Then
    Sheets("Blank").Select
    MsgBox "Sorry, you do not have the access rights to view the data contained in this report. Please contact a member of the HR Team to request access"
    ThisWorkbook.Close SaveChanges:=False
 
    Else
 
    ActiveWindow.DisplayWorkbookTabs = False
    Const strPwd As String = "PMS"
 
    ThisWorkbook.Unprotect Password:=strPwd
 
    Run "Copy"
 
End If
With Application
    .DisplayFullScreen = True
    .CommandBars("Web").Visible = False
 
End With
End Sub
 
Upvote 0
Here is the corrected message,

Please insert [ code ] before first letter of your code and remove spaces inside paranthesis and

[ /code ] before last letter of your code and remove spaces inside paranthesis
 
Upvote 0
Hello,

You inserted:

Rich (BB code):
Application.ScreenUpdating = False

at the beginning of you code, I guess you need to turn it back to True.

Rich (BB code):
Application.ScreenUpdating = True

Did this help ?
 
Upvote 0
No. I've just tried turning that to True and still makes the web bar visible and has now stopped displaying in full screen!
:eeek:
 
Upvote 0
I've solved it.

By eliminating the hyperlink and using VBA to open the new workbook has stopped the Web Bar from popping up.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top