Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Spell Check Macro Help


I am running the following script. It unprotects, runs spell check, and
then re-protects. That portion works. It does not however allow for
formatting rows once the macro runs. Any ideas why?


Sub Spellcheck_Click()

ActiveSheet.Unprotect Password:="**"
Cells.CheckSpelling SpellLang:=1033
ActiveSheet.Protect Password:="**"
ActiveSheet.Protect DrawingObjects:=True, Contents:=True,
Scenarios:=True _
, AllowFormattingRows:=True

End Sub

I ran a similar macro that made the row formatting work, but when I
tried to add the password to it it would not reprotect with the
password.


--
Kevin Ward
------------------------------------------------------------------------
Kevin Ward's Profile: http://www.excelforum.com/member.php...o&userid=31417
View this thread: http://www.excelforum.com/showthread...hreadid=516369

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Spell Check Macro Help

You have a response at your post in .misc.

Kevin Ward wrote:

I am running the following script. It unprotects, runs spell check, and
then re-protects. That portion works. It does not however allow for
formatting rows once the macro runs. Any ideas why?

Sub Spellcheck_Click()

ActiveSheet.Unprotect Password:="**"
Cells.CheckSpelling SpellLang:=1033
ActiveSheet.Protect Password:="**"
ActiveSheet.Protect DrawingObjects:=True, Contents:=True,
Scenarios:=True _
, AllowFormattingRows:=True

End Sub

I ran a similar macro that made the row formatting work, but when I
tried to add the password to it it would not reprotect with the
password.

--
Kevin Ward
------------------------------------------------------------------------
Kevin Ward's Profile: http://www.excelforum.com/member.php...o&userid=31417
View this thread: http://www.excelforum.com/showthread...hreadid=516369


--

Dave Peterson
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
Spell Check Sarapu New Users to Excel 1 October 16th 07 07:39 AM
Spell check sri Excel Discussion (Misc queries) 1 February 6th 07 09:36 PM
Error Msg 400 - Macro Spell Check Rog Excel Discussion (Misc queries) 2 December 13th 06 07:09 PM
Spell check Tonks Excel Worksheet Functions 2 July 31st 06 11:44 AM
... Can I set Spell Check to automatically check my spelling ... Dr. Darrell Setting up and Configuration of Excel 0 March 21st 06 08:26 PM


All times are GMT +1. The time now is 02:52 PM.

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

About Us

"It's about Microsoft Excel"