• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

How to hide viewer bar in my file ?|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / How to hide viewer bar in my file ?|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…How to hide viewer bar in my file ?
sp_PrintTopic sp_TopicIcon
How to hide viewer bar in my file ?
Avatar
Christine Haumont

New Member
Members
Level 0
Forum Posts: 2
Member Since:
September 7, 2020
sp_UserOfflineSmall Offline
1
September 8, 2020 - 12:20 am
sp_Permalink sp_Print

Hello,

Could you please help me to hide the viewbar in my excel file Capture.PNGImage Enlarger

?

I use Excel 2019 on Windows 10

sp_PlupAttachments Attachments
  • sp_PlupImage Capture.PNG (54 KB)
Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 412
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
2
September 8, 2020 - 4:17 am
sp_Permalink sp_Print

Not sure why you would want to in a worksheet but......

Sub scrollbars()

ActiveWindow.DisplayHorizontalScrollBar = False
ActiveWindow.DisplayVerticalScrollBar = False

End Sub

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4447
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
3
September 8, 2020 - 8:44 am
sp_Permalink sp_Print

Hi Christine,

Purfleet's instructions are for hiding the scroll bars in Excel for the desktop using VBA. I think based on your screenshot that you mean the viewer bar when embedding your file in a web page using the Excel Web App. If so, please see this tutorial. If you still have problems, then please share your code.

Mynda

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
September 8, 2020 - 2:41 pm
sp_Permalink sp_Print

Hi Christine,

Your image shows the workbook embedded in a web page so I'll need the address of that web page and the embed code you are using from OneDrive.

If you are just using the test HTML page I created here https://www.myonlinetraininghu.....-dashboard please supply that and the workbook embed code.

Regards

Phil

Avatar
Christine Haumont

New Member
Members
Level 0
Forum Posts: 2
Member Since:
September 7, 2020
sp_UserOfflineSmall Offline
5
September 9, 2020 - 12:40 am
sp_Permalink sp_Print

Hi Mynda,

Here is my code

<div id="myExcelDiv" style="width: 700px; height: 750px"></div>
<!-- * This code uses the Microsoft Office Excel Javascript object model to programmatically insert the
* Excel Web App into a div with id=myExcelDiv. The full API is documented at
* https://msdn.microsoft.com/fr-.....15812.aspx. There you can find out how to programmatically get
* values from your Excel file and how to use the rest of the object model. -->
<script type="text/javascript" src="https://onedrive.live.com/embed?resid=6575DB2DD5948D5%216247&authkey=%21APMLYYGNrBu4jLg&em=3&wdDivId=%22myExcelDiv%22&wdHideGridlines=1&wdHideHeaders=1&wdActiveCell=%22'Feuil1'!A1%22&wdAllowInteractivity=0"></script>

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1514
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
6
September 9, 2020 - 10:36 am
sp_Permalink sp_Print sp_EditHistory

Hi Christine,

Did you try putting that code into the example HTML file I provided here 

https://www.myonlinetraininghu.....-dashboard

because it worked right away to hide the viewer bar when I did.

To remove the horizontal and vertical scroll bars (see attached image) you will need to modify the embed code from OneDrive. 

As it is the area of the sheet being embedded is very large.  You've probably got Entire Workbook selected in the 'What to show' area - see attached image. 

You should enter a range to display and then modify the width and height of the div in the embed code to accommodate this displayed range

id="myExcelDiv" style="width: 700px; height: 750px;"

The attached .txt file is actually a HTML file.  Download it, change the file extension to htm, upload it to a website and it will load your workbook.

Regards

Phil

 

scroll-bars.pngImage Enlarger

embed-options.pngImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage scroll-bars.png (235 KB)
  • sp_PlupImage embed-options.png (7 KB)
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Roslyn Finlayson, Shanna Henseler, LAN H
Guest(s) 7
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6210
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31888
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.