+ Reply to Thread
Results 1 to 3 of 3

Macro crashes excel after spell check is ran.

  1. #1
    Registered User
    Join Date
    02-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macro crashes excel after spell check is ran.

    I have created a macro that will take text entered into a cell and parse it out into adjoining cells. The macro works fine until I run spell check. Once I run spell check, if there are couple of spelling errors in multiple cells in the column the macro is watching, it will cause excel to crash. Is there any way to keep the macro from running on spell check changes? Any help with this would be appreciated.

  2. #2
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: Macro crashes excel after spell check is ran.

    Can you post you code??
    Thanks!
    Raga.

    Please,mark your thread [SOLVED] if you received your answer.

    Click the little star * below, to give some Rep if you think an answer deserves it.

    I learnt so many things from these links.

  3. #3
    Registered User
    Join Date
    02-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro crashes excel after spell check is ran.

    This is an abridged version of the code:

    Sub Worksheet(ByVal Target As Range)
    Set Keycalls = Range("I:I")

    If Not application.Intersect(KeyCalls, Range(Target.Address)) _
    Is Nothing And Firsttime = 0 Then
    Firsttime = 1
    Anchor0 = "I" + Mid(Target.address, 4, 9999)
    Anchor1 = "J" + Mid(Target.address, 4, 9999)
    Alltext = ""
    Alltext = Range(Anchor0)
    If Len(Alltext) > 250 _
    Then
    partA = Mid(Alltext, 1, 250)
    partB = Mid(Alltext, 251, 250)
    Else
    partA = Alltext
    End If
    Range(Anchor0) = partA
    Range(Anchor1) = partB
    Firsttime = 0
    End If
    End Sub
    Last edited by dasani9999; 02-04-2013 at 05:48 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1