Lewati ke konten utama

Buka kunci Excel Berkas di Power Automate

PDF4me Buka kunci Excel adalah sebuah Power Automate Tindakan yang menghapus perlindungan kata sandi dari buku kerja hingga tiga lapisan independen, enkripsi file, struktur buku kerja, dan konten lembar kerja. Gunakan untuk membuka, mengedit, atau melindungi kembali. Excel mengakses file tanpa perlu memasukkan kata sandi secara manual di aplikasi desktop.

Apa yang dilakukan oleh tindakan ini?

PDF4me Buka kunci Excel Fungsi ini menerima Kata Sandi File, Kata Sandi Buku Kerja, dan Kata Sandi Lembar Kerja sebagai input independen dan hanya menghapus lapisan perlindungan yang benar-benar ada pada file. Isi hanya kata sandi yang Anda ketahui, penargetan lembar kerja dan budaya adalah parameter lanjutan opsional.

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 membuka kunci permintaan dengan aman.

Fakta Penting yang Tidak Boleh Anda Lewatkan

Tiga lapisan kata sandi independen
Kata Sandi Berkas menghapus enkripsi saat membuka berkas, Kata Sandi Buku Kerja menghapus perlindungan struktur, Kata Sandi Lembar Kerja menghapus perlindungan konten tingkat lembar. Berikan hanya kata sandi yang benar-benar digunakan oleh berkas tersebut.
Penargetan lembar kerja berbasis 1.
Parameter lanjutan menunjukkan "Menampilkan 3 dari 3": Nama Lembar Kerja, Indeks Lembar Kerja (berbasis 1, jadi 1 = lembar pertama), dan Nama Budaya. Biarkan kolom lembar kerja kosong untuk membuka kunci semua lembar.
Kata sandi yang salah akan menyebabkan seluruh proses gagal.
Jika kata sandi yang diberikan tidak sesuai dengan lapisannya, Success akan mengembalikan nilai false dengan ErrorMessage yang menyebutkan lapisan mana yang gagal. Tidak ada pembukaan kunci sebagian yang dikembalikan.
Tindakan Power Automate PDF4me Excel Unlock File dikonfigurasi dengan Konten File yang dipetakan dari Konten File yang Diamankan, Nama File test.xlsx, Kata Sandi File 56789, Kata Sandi Buku Kerja 12345, Kata Sandi Lembar Kerja 34567, dan parameter Lanjutan yang menunjukkan 3 dari 3 dengan bidang Nama Lembar Kerja, Indeks Lembar Kerja, dan Nama Budaya.

Petakan Isi Berkas, atur Nama Berkas, lalu isi hanya lapisan Kata Sandi Berkas, Kata Sandi Buku Kerja, atau Kata Sandi Lembar Kerja yang sebenarnya digunakan oleh berkas tersebut.

Parameter

Diperlukan: Konten berkas harus selalu disediakan. Nama berkas dan ketiga kolom kata sandi bersifat opsional, hanya kata sandi yang sesuai dengan lapisan perlindungan berkas yang diperlukan. Nama Lembar Kerja, Indeks Lembar Kerja, dan Nama Budaya adalah parameter lanjutan bersyarat.

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 NameOptionalExcel filename including extension (.xlsx or .xls), used for processing and output identification.test.xlsx
File PasswordConditionalRemoves the encryption password required to open the file. Only needed if the file is open-password protected.56789
Workbook PasswordConditionalRemoves workbook structure protection that blocks adding, deleting, or renaming sheets. Only needed if the workbook is structure-protected.12345
Worksheet PasswordConditionalRemoves worksheet-level protection that blocks editing cells or objects on a sheet. Only needed if the worksheet is protected.34567
Worksheet NamesConditionalAdvanced parameter. Comma-separated worksheet names to unlock. Leave empty along with Worksheet Indexes to unlock every sheet.Sheet1,Summary
Worksheet IndexesConditionalAdvanced parameter. Comma-separated 1-based worksheet indexes to unlock (1 = first sheet). Combines with Worksheet Names if both are set.1,2,3
Culture NameConditionalAdvanced parameter. Culture/locale code for processing, for example en-US or de-DE. Blank uses the default culture.en-US

Bidang Keluaran

BidangJenisIsi di dalamnya
documentBase64The Excel workbook with the requested protection layers removed.
SuccessBooleantrue if the action completed, false if it failed.
ErrorMessageStringError description naming the failed password layer, 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.Provide a valid Excel document in File Content.
The workbook is password-protected. Please provide File Password to open the file.The file is encrypted but no File Password was provided.Provide the correct File Password.
Could not open the workbook with File Password: incorrect passwordThe provided File Password does not match.Verify and provide the correct File Password.
Workbook is protected. Please provide Workbook Password.The workbook has structure protection but no valid password.Provide the correct Workbook Password.
Worksheet '{name}' is protected. Please provide a valid password.The named worksheet has content protection but no valid password.Provide the correct Worksheet Password.
Invalid worksheet selectionA worksheet name or index does not exist in the workbook.Use existing worksheet names or valid 1-based indexes.
Available worksheets in workbook (X total)Informational message shown when worksheet selection fails.Use worksheet indexes from 1 to X.

Bagaimana Cara Mengatur Unlock? Excel di dalam Power Automate?

  1. Menambahkan PDF4meExcel - Buka Kunci File untuk Anda Power Automate mengalir.
  2. Peta Isi File dari tindakan sebelumnya (SharePoint, OneDrive, atau Dapatkan isi file) dan atur Nama File.
  3. Mengisi Kata Sandi File jika file tersebut memerlukan kata sandi untuk dibuka.
  4. Mengisi Kata Sandi Buku Kerja jika penambahan/penghapusan/penggantian nama lembar kerja diblokir, dan Kata Sandi Lembar Kerja jika pengeditan sel diblokir pada lembar kerja tertentu.
  5. Memperluas Parameter lanjutan untuk menargetkan secara spesifik Nama Lembar Kerja atau Indeks Lembar Kerja (berbasis 1), atau biarkan keduanya kosong untuk membuka kunci setiap lembar. Jalankan alur, buku kerja yang tidak terkunci akan kembali sebagai dokumen.

Pengaturan Umum

Contoh Alur KerjaCommon Power Automate flow patterns using Unlock Excel.
Siklus pembaruan templat yang dilindungi
  1. Pemicu terjadwal berjalan di awal setiap siklus pembaruan templat triwulanan.
  2. Mendapatkan isi file mengambil file yang dilindungi kata sandi. Excel Templat dari perpustakaan.
  3. Buka kunci Excel Menghapus perlindungan menggunakan Kata Sandi File dan Kata Sandi Buku Kerja yang diketahui.
  4. Tindakan Perbarui Baris atau tindakan serupa memodifikasi templat yang tidak terkunci, lalu Amankan. Excel Menerapkan kembali perlindungan sebelum didistribusikan ulang.
Sinkronisasi data terlindungi
  1. Alur terjadwal setiap malam mengambil buku kerja data utama yang dilindungi kata sandi.
  2. Buka kunci Excel Menghapus kata sandi file yang melindungi buku kerja.
  3. Update Rows dan Add Rows menyegarkan data dari database yang terhubung.
  4. Aman Excel menerapkan kembali kata sandi yang sama sebelum file disimpan kembali ke SharePoint.
Akses lembar kerja selektif
  1. Alur kerja dipicu ketika seorang manajer meminta akses edit ke lembar kerja tertentu.
  2. Fungsi "Get file content" mengambil sebuah buku kerja yang berisi beberapa lembar kerja yang dilindungi secara independen.
  3. Buka kunci Excel Hanya menargetkan lembar kerja yang diminta melalui Nama Lembar Kerja, menggunakan Kata Sandi Lembar Kerja untuk menghapus perlindungan konten sementara lembar kerja lainnya tetap terkunci.
  4. File yang sebagian sudah terbuka kuncinya dikirimkan melalui email kepada manajer yang meminta.

Tips Praktis

Only fill the passwords you need
File Password, Workbook Password, and Worksheet Password are all independent and optional. A file protected only at the worksheet level needs just Worksheet Password.
Worksheet indexes are 1-based here
Unlike some other PDF4me Excel actions that use 0-based indexes, Worksheet Indexes on this action starts at 1 for the first sheet. Double-check which convention the connected action expects.
A wrong password fails the whole run
There is no partial unlock. If any password you supplied does not match its layer, Success returns false and no document is produced.
Re-lock with Secure Excel after editing
If the workflow needs to preserve protection, pair this action with Secure Excel at the end of the flow to reapply passwords after edits are complete.
Store passwords in a secure vault, not the flow
Reference File Password, Workbook Password, and Worksheet Password from Azure Key Vault or a secure connector variable rather than hardcoding them in the flow definition.

Lembar Panduan Singkat

BidangNilai
ActionExcel - Unlock File
Required fieldsFile Content
Password layersFile Password, Workbook Password, Worksheet Password (each optional/conditional)
Advanced parameters3 total: Worksheet Names, Worksheet Indexes (1-based), Culture Name
Outputdocument (Base64 workbook) + Success + ErrorMessage + Errors

Pertanyaan Umum

How do I unlock an Excel file in Power Automate?+
Add the PDF4me Unlock File action, map the workbook into File Content, and provide whichever of File Password, Workbook Password, or Worksheet Password matches the protection on that file. Leave a field blank if that layer is not protected.
What is the difference between File Password, Workbook Password, and Worksheet Password?+
File Password removes the encryption that requires a password just to open the file. Workbook Password removes protection that blocks adding, deleting, or renaming sheets. Worksheet Password removes protection that blocks editing cells or objects on a specific sheet. See Microsoft's <a href="https://support.microsoft.com/en-us/office/protect-a-workbook-02f2d3c1-3bc5-4c1a-a5c2-6b3c6a8d8d3f" target="_blank" rel="noopener noreferrer">guide to workbook and worksheet protection</a> for how these layers work natively in Excel.
Can I unlock only specific worksheets instead of the whole workbook?+
Yes. Expand Advanced parameters and list Worksheet Names or Worksheet Indexes, using 1-based numbering. Leaving both empty unlocks every worksheet in the workbook.
What happens if I provide the wrong password?+
The action fails and returns Success false with an ErrorMessage naming which password layer could not be validated, for example an incorrect File Password or Workbook Password.
Do I need to know all three passwords to unlock a file?+
No. Provide only the passwords for the protection layers that are actually present. A file with only worksheet protection needs just Worksheet Password. See a community discussion on <a href="https://www.reddit.com/r/excel/comments/mniaxc/unlock_any_excel_sheet_without_knowing_the/" target="_blank" rel="noopener noreferrer">unlocking an Excel sheet without knowing the password</a> for why protection layers are independent.

Studi Kasus & Aplikasi Industri

  • Penutupan PeriodeBuka laporan keuangan untuk penyesuaian akhir sebelum penutupan.
  • Pembaruan TemplatHapus perlindungan dari templat akuntansi untuk pembaruan.
  • Persiapan AuditBuka kunci file untuk akses dan peninjauan auditor.
  • Integrasi DataBuka kunci file yang dilindungi untuk sinkronisasi data otomatis.

Tindakan Terkait

Tugas yang Sama di Platform Lain

Dapatkan Bantuan