Loncat ke daftar isi utama

Bagaimana cara cepat menyimpan buku kerja ke beberapa lokasi di Excel?

Di Excel, kita bisa menyimpan buku kerja ke lokasi tertentu seperti yang kita inginkan, namun, pernahkah Anda membayangkan menyimpan satu buku kerja ke beberapa folder pada saat yang bersamaan? Di artikel ini, dengan kode VBA, Anda bisa dengan cepat menyimpan satu buku kerja ke beberapa lokasi sekaligus.

Simpan buku kerja ke beberapa lokasi dengan VBA


panah gelembung kanan biru Simpan buku kerja ke beberapa lokasi dengan VBA

Untuk menyimpan buku kerja ke beberapa lokasi, Anda hanya perlu menerapkan satu kode makro.

1. tekan Alt + F11 kunci untuk membuka Microsoft Visual Basic untuk Aplikasi jendela.

2. klik Menyisipkan > Modul dan tempel kode di bawah ini ke skrip Modul. Lihat tangkapan layar:

VBA: Menyimpan buku kerja ke beberapa lokasi

Sub SaveToLocations()
'UpdateByExtendoffice20160623
    ActiveWorkbook.SaveCopyAs "C:\Users\DT168\Documents\" + ActiveWorkbook.Name
    ActiveWorkbook.SaveCopyAs "C:\Users\DT168\" + ActiveWorkbook.Name
    ActiveWorkbook.Save
End Sub

simpan dokumen ke beberapa lokasi 1

jenis: di kode makro, Anda dapat mengubah jalur penyimpanan yang Anda inginkan.

3. tekan F5 kunci untuk menjalankan kode, dan buku kerja aktif telah disimpan ke lokasi yang Anda tentukan dalam kode.

Alat Produktivitas Kantor Terbaik

馃 Kutools AI Ajudan: Merevolusi analisis data berdasarkan: Eksekusi Cerdas   |  Hasilkan Kode  |  Buat Rumus Khusus  |  Analisis Data dan Hasilkan Grafik  |  Aktifkan Fungsi Kutools...
Fitur Populer: Temukan, Sorot, atau Identifikasi Duplikat   |  Hapus Baris Kosong   |  Gabungkan Kolom atau Sel tanpa Kehilangan Data   |   Putaran tanpa Formula ...
Pencarian Super: VLookup Beberapa Kriteria    VLookup Nilai Berganda  |   VLookup di Beberapa Lembar   |   Pencarian Fuzzy ....
Daftar Drop-down Lanjutan: Buat Daftar Drop Down dengan Cepat   |  Daftar Drop Down yang Bergantung   |  Multi-pilih Drop Down List ....
Manajer Kolom: Tambahkan Jumlah Kolom Tertentu  |  Pindahkan Kolom  |  Alihkan Status Visibilitas Kolom Tersembunyi  |  Bandingkan Rentang & Kolom ...
Fitur Unggulan: Fokus Kisi   |  Tampilan Desain   |   Bar Formula Besar    Manajer Buku Kerja & Lembar   |  Perpustakaan Sumberdaya (Teks otomatis)   |  Pemetik tanggal   |  Gabungkan Lembar Kerja   |  Enkripsi/Dekripsi Sel    Kirim Email berdasarkan Daftar   |  Filter Super   |   Filter Khusus (filter tebal/miring/coret...) ...
15 Perangkat Teratas12 Teks Tools (Tambahkan Teks, Hapus Karakter, ...)   |   50 + Grafik jenis (Gantt Chart, ...)   |   40+ Praktis Rumus (Hitung usia berdasarkan ulang tahun, ...)   |   19 Insersi Tools (Masukkan Kode QR, Sisipkan Gambar dari Jalur, ...)   |   12 Konversi Tools (Angka ke Kata, Konversi Mata Uang, ...)   |   7 Gabungkan & Pisahkan Tools (Lanjutan Gabungkan Baris, Pisahkan Sel, ...)   |   ... dan banyak lagi

Tingkatkan Keterampilan Excel Anda dengan Kutools for Excel, dan Rasakan Efisiensi yang Belum Pernah Ada Sebelumnya. Kutools for Excel Menawarkan Lebih dari 300 Fitur Lanjutan untuk Meningkatkan Produktivitas dan Menghemat Waktu.  Klik Di Sini untuk Mendapatkan Fitur yang Paling Anda Butuhkan...

Deskripsi Produk


Tab Office Membawa antarmuka Tab ke Office, dan Membuat Pekerjaan Anda Jauh Lebih Mudah

  • Aktifkan pengeditan dan pembacaan tab di Word, Excel, PowerPoint, Publisher, Access, Visio, dan Project.
  • Buka dan buat banyak dokumen di tab baru di jendela yang sama, bukan di jendela baru.
  • Meningkatkan produktivitas Anda sebesar 50%, dan mengurangi ratusan klik mouse untuk Anda setiap hari!
Comments (5)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
how to make this code run when close/save the file automatically? thanks in advance!
This comment was minimized by the moderator on the site
Is it possible to save a file to multiple locations EVERY time someone amends it? At my office we share docs and 6 people can edit the same doc. I want to be able to create a backup of the file to a diff folder every time someone makes a change and saves it. It has to be a diff folder because the file is too big to put a backup in the same location. Can someone help please? Thanks
This comment was minimized by the moderator on the site
Hi,

I may offer you my solution called SOS Click for Microsoft Office. It is available at https://www.sos-click.com and works with Word, Excel and PowerPoint and allows you to save to several places in one click. It also allows you to auto-save every X minutes (up to 60). It can also attach a time-stamp to the filename so you can distinguish between different versions of the same spreadsheet. Hope this helps.
This comment was minimized by the moderator on the site
Hi,
I may offer you my solution called SOS Click for Microsoft Office. It is available at https://www.sos-click.com and works with Word, Excel and PowerPoint and allows you to save to several places in one click. It also allows you to auto-save every X minutes (up to 60). It can also attach a time-stamp to the filename so you can distinguish between different versions of the same spreadsheet. Hope this helps.
This comment was minimized by the moderator on the site
Sorry, I did not find a good solustion about this problem
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations