Lewati ke konten utama

Tambahkan Teks Header Footer ke Excel di dalam Power Automate

PDF4me Tambahkan Teks Header Footer ke Excel adalah sebuah Power Automate Aksi yang membubuhkan teks khusus ke enam zona header dan footer buku kerja, Kiri, Tengah, dan Kanan baik di header maupun footer. Gunakan untuk memberi merek pada laporan dengan judul, menandai footer sebagai rahasia, atau membubuhkan tanggal pembuatan tanpa membukanya. Excel secara manual.

Apa yang dilakukan oleh tindakan ini?

PDF4me Tambahkan Teks Header Footer ke Excel Menulis teks ke salah satu dari enam zona independen, Header Kiri, Header Tengah, Header Kanan, Footer Kiri, Footer Tengah, dan Footer Kanan, pada buku kerja yang sudah ada. Biarkan zona kosong untuk melewatinya. Parameter lanjutan menampilkan penataan gaya per zona seperti warna teks, yang hanya diterapkan setelah zona yang sesuai memiliki teks.

Postingan Blog Terkait
Belum ada postingan blog untuk fitur ini — akan segera hadir.
Sementara itu, jelajahi blog PDF4me untuk menemukan tutorial dan alur kerja di berbagai platform.
Kunjungi blog ini

Bagaimana Cara Saya Mengautentikasi Saya? Power Automate Mengalir?

Setiap PDF4me tindakan dalam Power Automate Membutuhkan koneksi yang valid. Buat atau pilih koneksi yang sesuai dengan kebutuhan Anda. PDF4me API kunci agar alur dapat melakukan autentikasi Excel Permintaan header/footer secara aman.

Fakta Penting yang Tidak Boleh Anda Lewatkan

Enam zona independen, bukan satu bidang penanda air.
Teks Header Kiri, Teks Header Tengah, Teks Header Kanan, Teks Footer Kiri, Teks Footer Tengah, dan Teks Footer Kanan bersifat opsional. Isi hanya area yang Anda butuhkan, area kosong dibiarkan tidak tersentuh.
Zona khusus gaya parameter lanjutan
Contoh yang dikonfirmasi adalah Header Left - Color. Panel tersebut mencantumkan total 15 parameter lanjutan untuk pemformatan per zona, dan pengaturan gaya hanya akan ditampilkan setelah zona Teks yang sesuai memiliki nilai.
Hanya Isi File dan Nama File yang wajib diisi.
Setiap zona teks header/footer dan setiap parameter gaya lanjutan bersifat opsional. Sebuah tindakan dengan keenam zona tersebut dibiarkan kosong tetap berjalan dengan sukses, hanya saja mengembalikan buku kerja tanpa perubahan.
Tindakan Power Automate PDF4me Tambah Teks Header Footer dikonfigurasi dengan Konten File, Nama File add_header_sample_file.xlsx, Teks Header Kiri Pdf4me Test, Teks Header Tengah dan Kanan kosong, Teks Footer Kiri, Tengah, dan Kanan kosong, dan parameter Lanjutan menunjukkan Header Kiri - Warna diatur ke Hitam

Petakan Konten File dan Nama File, isi zona teks header/footer yang Anda perlukan, lalu perluas Parameter Lanjutan untuk penataan gaya per zona.

Parameter

Diperlukan: Konten File dan Nama File harus selalu disediakan. Keenam zona teks header/footer bersifat opsional, isi hanya yang Anda butuhkan. Parameter gaya lanjutan bersifat kondisional, parameter tersebut hanya berlaku jika zona teks yang sesuai memiliki nilai.

ParameterDiperlukanApa fungsinya?Contoh
File ContentRequiredBase64 content of the source Excel workbook, mapped from SharePoint, OneDrive, or another prior action.[File Content from Get file content]
File NameRequiredExcel filename including extension (.xlsx or .xls), used for processing and output identification.add_header_sample_file.xlsx
Header Left TextOptionalText placed in the left section of the header. Leave blank to skip this zone.Pdf4me Test
Header Center TextOptionalText placed in the center section of the header.Confidential Report
Header Right TextOptionalText placed in the right section of the header.Page 1
Footer Left TextOptionalText placed in the left section of the footer.Internal Use Only
Footer Center TextOptionalText placed in the center section of the footer.Generated 2026-07-06
Footer Right TextOptionalText placed in the right section of the footer.Confidential
Header Left - ColorConditionalFont color for the Header Left Text zone, hex or color name. Only takes effect if Header Left Text has a value. One of 15 advanced parameters in the connector panel, expand Advanced parameters in the designer for the remaining per-zone style controls.Black

Bidang Keluaran

BidangJenisIsi di dalamnya
documentBase64The Excel workbook with the configured header/footer text applied.
SuccessBooleantrue if the action completed, false if it failed.
ErrorMessageStringError description, null when Success is true.
ErrorsArrayDetailed error objects, empty when Success is true.

Apa Arti Pesan Kesalahan Umum Tersebut?

Pesan KesalahanMenyebabkanLarutan
Request is emptyThe request object is null.Provide a valid request object.
Document is emptyFile Content is null or empty.Map a valid Excel document into File Content.
Invalid file formatThe mapped file is not a valid Excel document.Confirm the source file is a genuine .xlsx or .xls workbook.
Invalid color formatA color parameter has an invalid hex code or color name.Use a valid hex format such as #FF0000 or a standard color name.
  1. Menambahkan PDF4meExcel - Tambahkan Teks Header Footer untuk Anda Power Automate mengalir.
  2. Peta Isi File Dan Nama File dari tindakan sebelumnya (SharePoint, OneDrive, atau Dapatkan isi file).
  3. Isi salah satu Teks Kiri Header, Teks Tengah Header, atau Teks Header Kanan untuk zona header yang Anda butuhkan.
  4. Isi salah satu Teks Footer Kiri, Teks Tengah Footer, atau Teks Footer Kanan untuk zona footer yang Anda butuhkan.
  5. Memperluas Parameter lanjutan untuk menata zona yang terisi, misalnya Header Kiri - WarnaJalankan alur kerja, buku kerja bermerek akan muncul sebagai berikut: dokumen.

Pengaturan Umum

Contoh Alur KerjaCommon Power Automate flow patterns using Add Text Header Footer.
Pencetakan judul laporan bulanan
  1. Pemicu terjadwal berjalan pada tanggal pembuatan laporan bulanan.
  2. Mengambil isi file akan mengambil buku kerja laporan yang sudah selesai dari SharePoint.
  3. Opsi "Tambahkan Teks Header dan Footer" mengatur Teks Tengah Header ke judul laporan dan Teks Kiri Footer ke catatan yang dihasilkan secara otomatis.
  4. Buku kerja bermerek tersebut diunggah kembali ke pustaka dokumen laporan.
Penandaan kerahasiaan
  1. Aliran instan berjalan ketika sensitif Excel berkas diunggah ke folder yang dibatasi aksesnya.
  2. Fungsi Get file content mengambil buku kerja dari folder tersebut.
  3. Tambahkan Teks Header Footer untuk mengatur Teks Tengah Footer menjadi pemberitahuan kerahasiaan.
  4. Buku kerja yang telah ditandai akan disimpan kembali ke perpustakaan terbatas yang sama.
Branding hasil akhir yang diberikan kepada klien
  1. Suatu alur akan terpicu ketika sebuah hasil akhir ditandai sebagai Final dalam konektor manajemen proyek.
  2. Mendapatkan isi file mengambil hasil akhirnya. Excel hasil yang diharapkan.
  3. Opsi "Add Text Header Footer" mengatur Teks Header Kiri menjadi nama perusahaan dan Teks Footer Kanan menjadi ekspresi formatDateTime.
  4. File yang telah diberi merek dikirim melalui email kepada pemangku kepentingan klien.

Tips Praktis

Leave a zone blank to skip it
You do not need to fill all six text zones. An empty Header Right Text or Footer Left Text simply leaves that section unchanged.
Styling only applies to filled zones
Setting Header Left - Color has no visible effect unless Header Left Text also has a value. Fill the text first, then style it.
File Name needs the extension
Always include .xlsx or .xls in File Name. Omitting the extension can prevent the output from opening correctly in Excel.
Use expressions for auto-updating footers
Map Power Automate's formatDateTime() expression into a footer Text field for a footer that always shows the current date without manual edits.
Branch on Success before continuing
Add a Condition on Success after this action so a failed run does not pass an unbranded or unchanged workbook further down the flow.

Lembar Panduan Singkat

BidangNilai
ActionExcel - Add Text Header Footer
Required fieldsFile Content, File Name
Header zonesHeader Left Text, Header Center Text, Header Right Text (each optional)
Footer zonesFooter Left Text, Footer Center Text, Footer Right Text (each optional)
Advanced parameters15 total, confirmed example Header Left - Color (conditional on matching text zone)
Outputdocument (Base64 workbook) + Success + ErrorMessage + Errors

Pertanyaan Umum

How do I add a header and footer to Excel files in Power Automate?+
Add the PDF4me Add Text Header Footer action, map the workbook into File Content, set a File Name, then fill in any of the six Header Left, Header Center, Header Right, Footer Left, Footer Center, or Footer Right Text fields you need. Leave the rest blank.
Can I add page numbers to an Excel header with this action?+
The header and footer text fields accept literal text only, not Excel's built-in page-number field codes. To show a running page count, generate the number upstream in your flow and map it into one of the Text fields as a plain string. See Microsoft's guide to <a href="https://support.microsoft.com/en-us/office/headers-and-footers-in-a-worksheet" target="_blank" rel="noopener noreferrer">headers and footers in a worksheet</a> for how native Excel page-number codes work if you are building the sheet manually.
How do I set the header text color?+
Expand Advanced parameters in the action panel. The connector exposes 15 advanced style parameters, one confirmed example is Header Left - Color, which only takes effect once Header Left Text has a value.
Does this action support both .xls and .xlsx files?+
Yes. Map either format into File Content and keep the File Name extension consistent with the source workbook. See <a href="https://www.ablebits.com/office-addins-blog/excel-header-footer-add-change-remove/" target="_blank" rel="noopener noreferrer">Ablebits' guide to Excel headers and footers</a> for how the underlying Excel formatting behaves across file formats.
What happens if I leave every header and footer field blank?+
The action still runs and returns Success true, but the workbook is unchanged since there is no text to place in any zone.

Studi Kasus & Aplikasi Industri

  • Laporan KeuanganTambahkan header dengan nama perusahaan dan periode pelaporan.
  • Laporan AnggaranSisipkan catatan kaki kerahasiaan pada dokumen anggaran.
  • Dokumen Audit: Terapkan informasi tanggal audit dan versi di header
  • Laporan PengeluaranTambahkan tanggal pengajuan dan status persetujuan di bagian bawah halaman.

Tindakan Terkait

Tugas yang Sama di Platform Lain

Dapatkan Bantuan