1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

全シートをA1セル、表示倍率100%、スクロール位置を左上に変更するマクロ

Last updated at Posted at 2025-02-09

個人用マクロかアドインに追加することで利用可能。
追加方法は別途投稿したい。

'全シートをA1セル、表示倍率100%、スクロール位置を左上に変更する
Private Sub subSetA1()
    Dim ws As Worksheet
  
    '各シート、A1セル、表示倍率100%、スクロール位置を左上に変更
    For Each ws In ActiveWorkbook.Worksheets
        ws.Activate
        ws.Cells(1, 1).Select
        ActiveWindow.Zoom = 100
        ActiveWindow.ScrollColumn = 1
        ActiveWindow.ScrollRow = 1
    Next
    
    '先頭シートを選択
    ActiveWorkbook.Worksheets(1).Activate
    
End Sub
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?