+ Reply to Thread
Results 1 to 3 of 3

Execution Error "Range of the object failed" when running macro

  1. #1
    Forum Contributor
    Join Date
    12-03-2021
    Location
    Brussels
    MS-Off Ver
    Microsoft 365
    Posts
    186

    Execution Error "Range of the object failed" when running macro

    Dear,

    Please check the file attached.

    It contains a VBA Module "M13_ClientOrProspect" which adjusts the text displayed on the cell GENERAL! G7 depending on the value of the cell GENERAL! G1.

    The code seems to work but after running I still get an execution error, and I don't understand why.

    Please Login or Register  to view this content.
    Can someone please help me?

    Thanks
    Simon

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by jeriss; 04-05-2023 at 05:25 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,008

    Re: Execution Error "Range of the object failed" when running macro

    That code changes values on the General sheet, which has a Worksheet_Change event that calls that same code. You should probably be disabling events temporarily, either in the ClientOrProspect code or in the Change event, depending on whether the other codes you run from there should or should not trigger other events.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    12-03-2021
    Location
    Brussels
    MS-Off Ver
    Microsoft 365
    Posts
    186

    Re: Execution Error "Range of the object failed" when running macro

    Indeed! That worked, thanks!

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Run-time error "Method "Add" of object "Attachments" failed" - HELP
    By Jyggalag in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-20-2022, 10:03 AM
  2. [SOLVED] "Method 'Range' of object '_Worksheet' failed" error message
    By Simply_Me in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-07-2021, 03:02 AM
  3. Macro to email workbook -run time error "server execution failed"
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-19-2021, 01:44 PM
  4. [SOLVED] Receiving a "Method 'Range' of object'_Global' failed" error
    By aloha31 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-17-2013, 06:51 PM
  5. Getting "..object _worksheet failed..." error with intersect for cell and named range.
    By cool1_boy1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2013, 04:17 PM
  6. Error: "Method 'Range' of object '_Global' failed"
    By dblword in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-26-2009, 05:15 PM
  7. [SOLVED] "GoalSeek method of Range object failed" error message
    By Fixit_Steve in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2005, 04:06 PM

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