code VBa ใส่ข้อความส่วนท้ายของหน้า
Posted: Mon Aug 25, 2025 11:37 am
จาไฟล์ที่แนบมา
ต้องการใส่ข้อความท้ายหน้าโดยดึงมาจากชีท main เซล B2 B3 B4 เรียงลงมาสามแถว
ต้องปรับดค๊ดอย่างไรครับ
Code: Select all
Sub SetFooterFont()
Dim strFooter As String
Application.ScreenUpdating = False
' Sheet1.Activate
strFooter = Sheet2.Range("B2")
ActiveSheet.PageSetup.RightFooter = "&""TH Sarabun New,nomal""&16" & strFooter
Application.ScreenUpdating = False
End Sub
ต้องปรับดค๊ดอย่างไรครับ