메인 컨텐츠로 가기

Excel에서 인쇄 된 모든 페이지의 맨 아래에 행을 반복적으로 인쇄하는 방법은 무엇입니까?

기본적으로 Excel은 사용자가 맨 위에 행을 반복적으로 인쇄하는 기능을 제공합니다. 그러나 경우에 따라 페이지 상단을 제외하고 페이지 하단에 반복적으로 행을 인쇄하는 것을 선호 할 수 있습니다. 이 기사는 작은 트릭을 보여줄 것입니다.

VBA 코드로 하단에 반복적으로 행 인쇄


VBA 코드로 하단에 반복적으로 행 인쇄

아래 VBA 코드를 실행하여 모든 페이지의 바닥 글에 지정된 행을 삽입 할 수 있습니다. 그런 다음 Excel에서 인쇄 된 모든 페이지의 맨 아래에이 행을 반복적으로 인쇄 할 수 있습니다.

1. 프레스 다른 + F11 동시에 열려면 키 응용 프로그램용 Microsoft Visual Basic 창.

2. 에서 응용 프로그램용 Microsoft Visual Basic 창 대화 상자에서 끼워 넣다 > 모듈. 그런 다음 아래 VBA 코드를 복사하여 모듈 창에 붙여 넣으십시오.

VBA 코드 : 인쇄 된 모든 페이지의 바닥 글에 지정된 행 삽입

Sub MyFooter()
	Dim xTxt As String
	Dim xAddress As String
	Dim xRg As Range
	Dim xCell As Range
	On Error Resume Next
	xAddress = ActiveWindow.RangeSelection.Address
	Set xRg  = Application.InputBox("Select the row you will insert repeatedly at the bottom:", "Kutools for Excel", xAddress, , , , , 8)
	If xRg Is Nothing Then Exit Sub
		For Each xCell In xRg
			xTxt = xTxt & xCell.Value & " "
		Next
		ActiveSheet.PageSetup.LeftFooter = xTxt
	End Sub

3. 누르세요 F5 코드를 실행하는 키입니다. 그런 다음 Excel 용 Kutools 대화 상자가 나타나면 인쇄 된 모든 페이지의 맨 아래에 반복적으로 인쇄 해야하는 행을 선택한 다음 OK 버튼을 클릭합니다.

이제 지정된 행 내용이 현재 워크 시트의 모든 인쇄 된 페이지의 바닥 글에 추가됩니다. 워크 시트 인쇄를 시작할 수 있습니다.

주의 사항: 선택한 내용을 전체 통합 문서의 각 페이지 하단에 반복해서 인쇄하려면 바닥 글 기능을 적용하여 모든 시트의 바닥 글에 내용을 삽입 할 수 있습니다.


Excel에서 n 번째 행마다 제목 행을 쉽게 반복합니다.

Excel 용 Kutools's 제목 행 삽입 유틸리티는 아래 스크린 샷과 같이 Excel에서 선택한 범위의 n 번째 행마다 제목 행을 빠르게 삽입 할 수 있습니다.
지금 다운로드하여 사용해 보세요! (30일 무료 트레일)

최고의 사무 생산성 도구

🤖 Kutools AI 보좌관: 다음을 기반으로 데이터 분석을 혁신합니다. 지능형 실행   |  코드 생성  |  사용자 정의 수식 만들기  |  데이터 분석 및 차트 생성  |  Kutools 기능 호출...
인기 기능: 중복 항목 찾기, 강조 표시 또는 식별   |  빈 행 삭제   |  데이터 손실 없이 열이나 셀 결합   |   수식없이 반올림 ...
슈퍼 조회: 다중 기준 VLookup    다중 값 VLookup  |   여러 시트에 걸친 VLookup   |   퍼지 조회 ....
고급 드롭다운 목록: 드롭다운 목록을 빠르게 생성   |  종속 드롭다운 목록   |  다중 선택 드롭 다운 목록 ....
열 관리자: 특정 개수의 열 추가  |  열 이동  |  Toggle 숨겨진 열의 가시성 상태  |  범위 및 열 비교 ...
특색 지어진 특징: 그리드 포커스   |  디자인보기   |   큰 수식 바    통합 문서 및 시트 관리자   |  리소스 라이브러리 (자동 텍스트)   |  날짜 선택기   |  워크 시트 결합   |  셀 암호화/해독    목록으로 이메일 보내기   |  슈퍼 필터   |   특수 필터 (굵게/기울임꼴/취소선 필터링...) ...
상위 15개 도구 세트12 본문 도구 (텍스트 추가, 문자 제거,...)   |   50+ 거래차트 유형 (Gantt 차트,...)   |   40+ 실용 방식 (생일을 기준으로 나이 계산,...)   |   19 삽입 도구 (QR 코드 삽입, 경로에서 그림 삽입,...)   |   12 매출 상승 도구 (숫자를 단어로, 환율,...)   |   7 병합 및 분할 도구 (고급 결합 행, 셀 분할,...)   |   ... 그리고 더

Excel용 Kutools로 Excel 기술을 강화하고 이전과는 전혀 다른 효율성을 경험해 보세요. Excel용 Kutools는 생산성을 높이고 시간을 절약하기 위해 300개 이상의 고급 기능을 제공합니다.  가장 필요한 기능을 얻으려면 여기를 클릭하십시오...

상품 설명


Office Tab은 Office에 탭 인터페이스를 제공하여 작업을 훨씬 쉽게 만듭니다.

  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성을 50% 높이고 매일 수백 번의 마우스 클릭을 줄입니다!
Comments (11)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi,

I've been trying to use the above code but when I try to print te code it doesn't work. I followed all above steps and it doesn't give me any errors.
I'm using office 365. Any tips ?

Thanks in advance,
This comment was minimized by the moderator on the site
Hi Tim,
Hi, the selected row will be inserted into the page footer, you need to switch to the Page Layout view to check for the result. Thank you for your comment.
This comment was minimized by the moderator on the site
Hi,

When I start the macro and select the wished rows it doesn't work when I try to print. What can this be?
Using office 365.

Thanks,
This comment was minimized by the moderator on the site
Hi,
I am trying a few times but it's not working. Please advise.
This comment was minimized by the moderator on the site
Good day,
Thank you for your comment. Which Office version do you use?
This comment was minimized by the moderator on the site
If I may, I use Office365 but its not working. Have tried putting the view on Page Layout Mode to no avail. Hope you can help. Thanks.
This comment was minimized by the moderator on the site
Thank you So Muchhhh...
It helped me very much.
This comment was minimized by the moderator on the site
Thanks for sharing. is any possibility of VBA code to repeated footer same as with "print titles" option including lines and auto page number. if possible please help me.
This comment was minimized by the moderator on the site
Thanks for sharing the macro to repeat the rows at the bottom of the page. Can this Macro be modified to Repeat selected Rows with the format as well.. In the provided Macro only Values are repeated at the bottom of each page, I am looking forward to copy the format as well at the bottom of the page..
This comment was minimized by the moderator on the site
Thanks a lot. This macro serves my purpose, Thanks to the creator and the person who had shared Macro
This comment was minimized by the moderator on the site
Thanks for Macro sharing. It serves my purpose. Thanks a lot.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations