Results 1 to 10 of 10

VBA to Copy & Paste Values Suddenly Returns &H8000FFF (-2147418113) Catastrophic Failure

Threaded View

  1. #1
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,492

    VBA to Copy & Paste Values Suddenly Returns &H8000FFF (-2147418113) Catastrophic Failure

    VBA to Copy & Paste Values Suddenly Returns &H8000FFF (-2147418113) Catastrophic Failure

    I've had the following code attached to a command button for some years now and until today it has worked fine:

    Sub ConvertToValues()
    Dim Rng As Range
    Dim WorkRng As Range
    On Error Resume Next
    xTitleId = "Select range to convert to values:"
    Set WorkRng = Application.Selection
    Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
    Application.ScreenUpdating = False
    For Each Rng In WorkRng
        Rng.Value = Rng.Value
    Next
    Application.ScreenUpdating = True
    End Sub
    Sub unprotect_or_protect()
    If ActiveSheet.ProtectContents = True Then
    ActiveSheet.Unprotect
    Else
    ActiveSheet.Protect
    End If
    End Sub
    Last time I used it will have been at the start of April.

    It's in Module 1.

    I can't debug - trying to do so causes the program to crash.

    I can live without it, so it's not a problem if nobody knows what the issue might be, but I just wondered if any VBA gurus could spot anything there that might no longer be compatible with the latest version of 365 (I'm on the beta channel).

    As I say - this isn't a biggie, so I'm not going to spend time trying to diagnose it if nothing jumps out at anybody, but thanks for any insight. I can't share the workbook and won't be creating a sample, as I can live without this, as I said.
    Last edited by AliGW; 05-01-2022 at 04:14 AM. Reason: Typo fixed.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Catastrophic Failure Error
    By Sareld1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2020, 09:51 AM
  2. System Error &H8000FFF (-247418113). Catastrophic failure
    By Gus333 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2019, 07:26 PM
  3. Automation Error: Catastrophic failure
    By NYCoder87 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-20-2016, 08:04 PM
  4. System Error &H8000FFFF (-2147418113). Catastrophic failure
    By questionguy in forum Excel General
    Replies: 1
    Last Post: 08-27-2012, 06:14 PM
  5. Userform.show = Catastrophic Failure
    By mark.mba in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-15-2009, 08:48 AM
  6. [SOLVED] catastrophic failure
    By Harikarishna in forum Excel General
    Replies: 0
    Last Post: 07-07-2006, 06:55 AM
  7. System Error &H8000FFFF (-2147418113). Catastrophic Failure
    By poppy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-30-2005, 08:40 AM

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