Excel (VBA)의 Word 문서에 바닥 글을 삽입하려고합니다. 코드가 실행 후Microsoft Word VBA에서 Excel에서 바닥 글 삽입
Sub FooterTextwithpageNum()
Dim wb As Workbook
Dim objWord As Object
Dim FooterTemp As Object
Set objWord = GetObject(, "Word.Application")
objWord.Visible = True
Set FooterTemp = objWord.ActiveDocument
FooterTemp.Sections(1).Footers(1).Range.Text = "This is Custom Text"
FooterTemp.Sections(1).Footers(1).PageNumbers.Add FirstPage:=True
End Sub
아래와 같은 결과를 얻고있다 :
을
Footer Left Right Footer:
다음 CustomText Page 1 of 5
엑셀로 작성된 VBA 코드 : 나는 바닥 글이처럼되고 싶어요 Footer Left Right Footer:
This is Custom Text 1
페이지 번호를 Y 대신 페이지 번호 1,2로 가져 오는 대신 1,2 등. 누구나 페이지 번호를 Y로 가져 오는 데 도움을 줄 수 있습니까? 이 링크를 한 번 봐 제발
왜 부정 투표가 필요합니까? – Richa