Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tso tso is offline
Junior Member
 
Posts: 1
Default Spell Check Protected WORKBOOK

Hi Everyone,

I have found the Macro code to check spelling for one particular worksheet.

However, I want the macro to check the spelling in all 10 worksheets.

This is what I am using now.

Sub SpellCheckIt()
Sheets("Sheet1").Unprotect "Password"
ActiveSheet.CheckSpelling
Sheets("Sheet1").Protect "Password"
End Sub


Thank you,
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Spell Check Protected WORKBOOK

Hi,

Am Tue, 11 Jun 2013 19:06:41 +0100 schrieb tso:

However, I want the macro to check the spelling in all 10 worksheets.


try:

Sub SpellCheckIt()
Dim i As Integer
For i = 1 To Sheets.Count
With Sheets(i)
.Unprotect "Password"
.CheckSpelling
.Protect "Password"
End With
Next
End Sub


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
using Spell check on protected sheet Pat[_2_] Excel Worksheet Functions 7 March 13th 09 10:40 PM
Spell Check with protected sheets Karissa Excel Discussion (Misc queries) 3 January 26th 09 03:08 PM
Spell check protected sheet Suzanne Excel Discussion (Misc queries) 0 May 30th 07 05:52 PM
Spell Check in Protected Worksheet & Shared Workbook DaveyC4S Excel Discussion (Misc queries) 6 October 28th 05 12:50 PM
Spell Check in Protected Worksheet & Shared Workbook continued DaveyC4S Excel Discussion (Misc queries) 1 October 25th 05 06:15 PM


All times are GMT +1. The time now is 05:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"