Office
 Computer >> コンピューター >  >> ソフトウェア >> Office

Excel でワークシートの向きを横向きに変更する方法

特に列数の多いデータがある場合は、デフォルトの縦方向ではなく横方向のページ方向を使用すると便利な場合があります。次の画像のようなワークシートがあるとします。この記事では、5 を紹介します。 このワークシートの向きをデフォルトの縦向きから横向きに変更する方法のユニークな例。興味がある場合は、練習用ワークブックをダウンロードしてフォローしてください。

この記事を読みながら練習するために、この練習用ワークブックをダウンロードしてください。

Excel でワークシートの向きを横向きに変更する 5 つの適切な例

例を示すために、会社の販売レポートの大規模なデータセットを考えます。データセットはセル範囲 B5:K104 にあります .

Excel でワークシートの向きを横向きに変更する方法

📚注:

この記事のすべての操作は、Microsoft Office 365 を使用して実行されます。

1.ページ レイアウト タブからランドスケープ コマンドを使用する

最初の例では、ワークシートの向きを Portrait から変更します 風景オリエンテーションの使用 指図。プロセスを完了する手順は次のとおりです。

📌 手順:

  • まず、ページ レイアウトに移動します。 タブ
  • さて、ページ設定から グループ、ドロップダウン矢印をクリックします オリエンテーションの コマンド
  • 次に、風景を選択します オプション

Excel でワークシートの向きを横向きに変更する方法

  • データセットの向きが から変更されます 風景へ .

したがって、手順は完全に機能し、ワークシートの向きを Portrait から変更できると言えます。 風景へ .

続きを読む: Excel でページの向きを変更する方法 (2 つの簡単な方法)

2.ページ設定ダイアログボックスから向きを変更

この例では、ページ設定 からワークシートの向きを変更します。 ダイアログボックス。この例を実行するための完全なプロセスは次のとおりです。

📌 手順:

  • まず、ページ レイアウトに移動します タブ
  • さて、ページ設定から グループで、[ページ設定] をクリックします ダイアログ ボックス ランチャー

Excel でワークシートの向きを横向きに変更する方法

  • その結果、[ページ設定] という小さなダイアログ ボックスが表示されます。 お使いのデバイスに表示されます。
  • その後、ページで タブ、風景を選択 向きのオプション
  • 最後に、[OK] をクリックします。 .

Excel でワークシートの向きを横向きに変更する方法

  • データセットの向きが から変更されます 風景へ .

したがって、手順が効果的に機能し、ワークシートの向きを Portrait から変更できると言えます。 風景へ .

類似の読み物

  • Excel チャートのテキスト方向を変更する方法 (3 つの簡単な方法)
  • Excel で向きを横から縦に変更
  • Excel でテキストの向きを変更する方法 (5 つの簡単な方法)

3.複数のワークシートの向きの変更

一度に複数のワークシートの向きを変更できます。向きを変更するプロセスは最初の方法とほとんど同じですが、一度に複数のシートを変更するには、それらをグループ化する必要があります。この例を完了する手順は次のとおりです。

📌 手順:

  • 最初に、ワークブックで複数のシートを選択します。すべてのシートを選択するには、右クリックします シート名バーのシート名 [すべてのシートを選択] を選択します。 オプション

Excel でワークシートの向きを横向きに変更する方法

  • すべてのシートを選択する必要がない場合は、「Ctrl」 をワイルドに押します キーを押して必要なシートをクリックし、ワークシートを選択します。ご希望のワークシートが選択されます。
  • その後、ページ レイアウトに移動します タブ
  • 次に、ページ設定から グループ、ドロップダウン矢印をクリックします オリエンテーションの コマンドを押して Landscape を選択します オプション

Excel でワークシートの向きを横向きに変更する方法

  • Now, if you check on the other sheets, you will notice that the orientation of all selected sheets will change from Portrait to Landscape .

Excel でワークシートの向きを横向きに変更する方法

So, we can say that our procedure works precisely, and we are able to change the orientation of the worksheet from Portrait to Landscape .

4. Changing Orientation While Printing

We can change the worksheet orientation at the time of printing to a hard copy. The procedure of this case is shown below step-by-step:

📌 手順:

  • Firstly, click on the File> Print オプション。 Besides it, you can also press ‘Ctrl+P’ to launch the print dialog box.

Excel でワークシートの向きを横向きに変更する方法

  • You will see a preview of your dataset here, which will be like after printing on your select size of the page.
  • Now, click on the drop-down of the Portrait Orientation option and choose Landscape Orientation .

Excel でワークシートの向きを横向きに変更する方法

  • You will notice the dataset’s orientation will change from Portrait to Landscape and it will be also displayed on the print preview.

Excel でワークシートの向きを横向きに変更する方法

Therefore, we can say that our procedure works properly, and we are able to change the orientation of the worksheet from Portrait to Landscape .

5. Changing Page Orientation with VBA Code

Writing a VBA code will also help us to change the worksheet orientation from Portrait to Landscape . We are going to use our past dataset to demonstrate the approach. The steps to finish this example are explained below:

📌 手順:

  • To start the approach, go to the Developer tab and click on Visual Basic . If you don’t have that, you have to enable the Developer tab . Or You can also press ‘Alt+F11’ for opening the Visual Basic Editor .

Excel でワークシートの向きを横向きに変更する方法

  • A dialog box will appear.
  • Now, in the Insert tab on that box, click the Module オプション

Excel でワークシートの向きを横向きに変更する方法

  • Then, write down the following visual code in that empty editor box.

Excel でワークシートの向きを横向きに変更する方法

Sub Oriente_to_Landscape()
With Worksheets("Data1")
 .PageSetup.Orientation = xlLandscape
End With
End Sub
  • After that, press ‘Ctrl+S’ コードを保存します。
  • Close the Editor タブ
  • Next, in the Developer tab, click on Macros from the Code グループ。

Excel でワークシートの向きを横向きに変更する方法

  • As a result, a small dialog box titled Macro
  • Select the Oriente_to_Landscape option and click the Run button to run the code.

Excel でワークシートの向きを横向きに変更する方法

  • Afterward, press ‘Ctrl+P’ to open the print preview.
  • You will figure out that the orientation of the dataset will change from Portrait to Landscape and it will be also displayed on the print preview.

Excel でワークシートの向きを横向きに変更する方法

Finally, we can say that our VBA works successfully, and we are able to change the orientation of the worksheet from Portrait to Landscape .

結論

That’s the end of this article. I hope that this article will be helpful for you and you will be able to change the orientation of the worksheet to landscape in Excel. Please share any further queries or recommendations with us in the comments section below if you have any further questions or recommendations.

Don’t forget to check our website, ExcelDemy , for several Excel-related problems and solutions. Keep learning new methods and keep growing!

関連記事

  • How to Change Orientation of Text to 22 Degrees in Excel (3 Ways)
  • Make Text Vertical in Excel Online (With Easy Steps)
  • Difference Between Alignment and Orientation in Excel
  • How to Make Text Vertical in Excel (2 Easy Ways)

  1. Excel ワークシートのセルにコメントを追加する方法

    私は Excel の大のユーザーですが、Excel スプレッドシートにコメントを追加する人がほとんどいないことにいつも驚かされます。 ! Excel でコメントを追加して使用することは、数式、セル、およびその他のデータをスプレッドシート自体で説明する優れた方法であり、同僚との電話で費やす時間を節約できます。 Excel でセルにコメントを追加するのは非常に簡単です。Excel XP/2003、Excel 2007、Excel 2010、Excel 2013 で行う方法を説明します。 コメントは基本的に、Excel の任意のセルに挿入できるメモです。リマインダー、他の人へのメモ、および他のワー

  2. Excel で垂直列を水平列に変更する方法

    この記事では、Excel で縦の列を横の行に変更する方法を学習します。 . Microsoft Excel は強力なツールであり、ユーザーがさまざまなタスクを簡単に実行するのに役立ちます。ユーザーは、データを表すデータセットを作成します。データセットは行と列で構成されます。場合によっては、ユーザーは Excel で垂直列を水平列に変更する必要がある場合があります。今日は 5 のデモンストレーションを行います さまざまな方法。これらの方法を使用すると、Excel で縦の列を横の行に簡単に変更できます。それでは、これ以上遅滞なく、議論を始めましょう。 ここからワークブックをダウンロードできます