Loncat ke daftar isi utama

Bagaimana cara mengizinkan pemeriksaan ejaan di lembar kerja terlindungi di Excel?

Secara default, fitur Spelling akan dinonaktifkan setelah melindungi lembar kerja seperti gambar di bawah ini. Bagaimana cara mengizinkan pemeriksaan ejaan di lembar kerja terlindungi di Excel? Artikel ini dapat membantu Anda.

Izinkan pemeriksaan ejaan di lembar kerja yang dilindungi dengan kode VBA


Izinkan pemeriksaan ejaan di lembar kerja yang dilindungi dengan kode VBA

Silakan jalankan kode VBA di bawah ini untuk mengaktifkan fitur pemeriksa ejaan di lembar kerja yang dilindungi.

1. tekan lain + F11 tombol secara bersamaan untuk membuka Microsoft Visual Basic untuk Aplikasi jendela.

2. Dalam Microsoft Visual Basic untuk Aplikasi window, klik Menyisipkan > Modul. Kemudian salin dan tempel kode VBA di bawah ini ke jendela Modul. Lihat tangkapan layar:

Kode VBA: Izinkan pemeriksaan ejaan di lembar kerja yang dilindungi

Sub ProtectSheetCheckSpellCheck()
'Update by Extendoffice 2018/11/2
Dim xRg As Range
On Error Resume Next
Application.ScreenUpdating = False
    With ActiveSheet
        .Unprotect ("123")
        Set xRg = .UsedRange
        xRg.CheckSpelling
        .Protect ("123")
    End With
Application.ScreenUpdating = True
End Sub

Note: Dalam kode, angka "123" adalah kata sandi dari worksheet terlindung yang telah Anda buat untuknya. Harap ubah sesuai kebutuhan Anda.

3. Pilih sel yang Anda perlukan untuk mengaktifkan pemeriksaan ejaan di lembar kerja yang diproteksi, lalu jalankan kode VBA dengan menekan tombol F5.

Kemudian kotak dialog Spelling muncul di lembar kerja yang dilindungi seperti gambar di bawah ini.


Terkait artikel:

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 (12)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
HI thank you for this information it works well, but it gives away the password to anyone that uses it? is there a way to hide it?
This comment was minimized by the moderator on the site
Hi Bobbie Gower,
You can follow the following tutorial to hide the corresponding VBA Module to prevent others from viewing the password.
How to Protect and Hide Excel Macros
This comment was minimized by the moderator on the site
Hello!
スペルチェックができるようになりましたが、選択した範囲以外も引っかかってしまいます。選択した部分のみチェックしたい場合には、どうすればいいですか?
すみません、随分前にアップされたようですが、もしまだアクセスされているようでしたら、ご返信いただければ幸いです。
よろしくお願いいたします。
This comment was minimized by the moderator on the site
Hi korori,
I don't quite understand what you mean. The code works on the selected cells. If you want to check the spellings in a range, just select the range and run the code. Then the Spelling dialog box will pop up.
This comment was minimized by the moderator on the site
I'm trying to get a protected worksheet intended to be a form to have those fields that are entered by the form user to get spell check. This seems like you have to run VBA just to check one cell?
This comment was minimized by the moderator on the site
Hi,
The code has been updated with the problem solved, please have a try. Thank you for your comment.
This comment was minimized by the moderator on the site
Thanks for this. It has worked well, except that it changes my sheet protection settings every time I run it. I have my sheet protected, but set to allow users to format cells, columns, and rows; but after running this code, the protection is set back to the default. How can I retain my settings?
This comment was minimized by the moderator on the site
You have to modify the .protect code by adding allow the criteria you want.
Worksheets("Sheet1").Protect,<span style="letter-spacing: 0.2px; color: inherit; font-family: inherit; font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-weight: inherit;">:=False, AllowInsertingColumns:=False, AllowInsertingRows:=False,</span><span style="letter-spacing: 0.2px; color: inherit; font-family: inherit; font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-weight: inherit;">:=False, AllowFiltering:=False, </span>
This comment was minimized by the moderator on the site
So please help my with the correct code if possible, cant get it to work with AllowInsertingRows
.Protect ("Welkom") and then?????? bit of a nob tot this
my worksheet (tabs) is called for example P&A or BIOP
This comment was minimized by the moderator on the site
Hi, thanks for these steps, but please help!! I'm not getting the spell check window when pressing F5, instead I get a GoTo window listing all the names of the defined data ranges in my workbook. Thanks JulieD
This comment was minimized by the moderator on the site
Hi JulieD,
It's my mistake of the description in step 3. After selecting the cell, you need to go back to the Microsoft Visual Basic for Applications window and then press the F5 key to run the code. Sorry for the mistake and thanks for your comment.
This comment was minimized by the moderator on the site
So please help my with the correct code if possible, cant get it to work with AllowInsertingRows
.Protect ("Welkom") and then?????? bit of a nob tot this
my worksheet (tabs) is called for example P&A or BIOP
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations