跳到主要內容

如何在Microsoft Excel中顯示或隱藏水平和垂直滾動條?

默認情況下,我們可以在活動工作表中滾動,水平滾動條在底部,垂直滾動條在右側。 在這裡,我們將向您顯示一些提示,以打開或關閉Microsoft Excel工作表中的滾動條。

doc隱藏bar1







使用Excel選項顯示或隱藏水平/垂直滾動條

使用VBA代碼顯示或隱藏水平/垂直滾動條

使用Kutools for Excel顯示/隱藏水平/垂直滾動條


使用Excel選項顯示或隱藏水平/垂直滾動條

您必須在以下位置配置Excel設置 Excel選項 對話框,如果要顯示或隱藏Excel工作表中的水平/垂直滾動條。

  • 步驟1:點擊 文件 Excel 2010或更高版本中的標籤,或單擊 Microsoft Office按鈕 doc-office-2007-按鈕 Excel 2007中的按鈕;
  • 步驟2:點擊 選項 按鈕;
  • 步驟3:在 Excel選項 對話框,轉到 高級 類別;
  • 第4步:向下滾動到 顯示此工作簿的選項 部分;
  • 第5步:選中或取消選中 顯示水平滾動條 選項和 顯示垂直滾動條 根據您的需要選擇。 看截圖:
  • 步驟6:點擊 OK。 然後您將獲得想要的結果。 如果選中它們,將顯示水平/垂直滾動條,如果不選中它們,則水平/垂直滾動條將隱藏。


使用VBA代碼顯示或隱藏水平/垂直滾動條

以下VBA代碼也可以幫助您顯示或隱藏水平/垂直滾動條。 請這樣做:

步驟1:按住 ALT + F11 鍵,然後打開 Microsoft Visual Basic for Applications 窗口。

步驟2:點擊 插入 > 模塊,然後將以下宏粘貼到“模塊窗口”中:

VBA代碼隱藏水平和垂直滾動條:

Option Explicit
Private Sub Workbook_Activate()
    With ActiveWindow
        .DisplayHorizontalScrollBar = False
        .DisplayVerticalScrollBar = False
    End With
End Sub

VBA代碼顯示水平和垂直滾動條:

Private Sub Workbook_Deactivate()
    With ActiveWindow
        .DisplayHorizontalScrollBar = True
        .DisplayVerticalScrollBar = True
    End With
End Sub

步驟3:按下 F5 運行此代碼的關鍵。 並且水平和垂直滾動條將被隱藏或顯示。


使用Kutools for Excel顯示或隱藏水平/垂直滾動條

Y您可以輕鬆地在Excel工作表中顯示或隱藏水平/垂直滾動條 查看選項 的效用 Excel的Kutools.

申請前 Excel的Kutools首先下載並安裝.

1:點擊 庫工具 > 顯示隱藏 > 查看選項。 看截圖:

2:在 查看選項 對話框,您需要執行以下操作:

  • (1)選中或取消選中 垂直滾動條 選項和 水平滾動條 根據您的需求選擇
  • (2)如果只想顯示或隱藏當前工作表中的滾動條,請單擊“確定”按鈕。 但是,如果要在所有工作表中顯示或隱藏scroolbar,請單擊“應用於所有工作表”按鈕

查看選項 可以快速顯示或隱藏大多數Microsoft Excel設置,例如 內部選項卡,公式欄,狀態欄,任務欄中的Windows,網格線,分頁符,顯示零點,垂直滾動條,水平滾動條,工作表標籤,…等。當您需要顯示或隱藏它們時,它將節省您尋找這些設置的時間。

  如果您想免費試用(30天)此實用程序, 請點擊下載,然後按照上述步驟進行操作。


使用Kutools for Excel顯示/隱藏水平/垂直滾動條


相關文章:

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
 

Comments (8)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Doesn't work. Vertical scroll bar disappeared for one of the two worksheets I had open in Excel 2007. The option for showing vertical scroll bars for that sheet was still checked and unchecking it and checking it again didn't fix the problem.
This comment was minimized by the moderator on the site
Hi there, which method did you use? I tried the methods, they all worked perfectly for me. Also, if you used the third method (Kutools for Excel) did you click Apply to all sheet?

Amanda
This comment was minimized by the moderator on the site
Box is checked but Horz. Scroll Bar is not available.
This comment was minimized by the moderator on the site
Same here - box ticked and no horizontal scroll bar
This comment was minimized by the moderator on the site
Box is checked but Horz. Scroll Bar is not available.

I have the same problem as Matt - the box is ticked but the scroll bar still isn't visible.
This comment was minimized by the moderator on the site
I have vertical and horizontal scroll lines. I can see the vertical scroll line. I can only see the top of the horizontal scroll line.
This comment was minimized by the moderator on the site
Thank you very much for the useful information I can use to help my fellow teacher asking me how to make scroll tool appear in ms excel 2007.It is so graphic and clear.
This comment was minimized by the moderator on the site
Bless you! I've been so frustrated trying to get the scroll bars to show. YAY!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations