+ Reply to Thread
Results 1 to 3 of 3

Sudden issue with: DrawingObject.Formula = ""

  1. #1
    Registered User
    Join Date
    10-26-2023
    Location
    NE, USA
    MS-Off Ver
    365
    Posts
    2

    Sudden issue with: DrawingObject.Formula = ""

    We have several spreadsheets that use VBA to assign a named range to a shape. Basically, another macro draws a picture inside a range named "CS". Then, the chunk of code below assigns the named range to the shape. A picture of the range will show in the shape. This has worked forever. In fact, it still works on my computer. But on my coworkers machine, it has suddenly started kicking out a '1004' error when it tries to set the DrawingObject.Formula = "".

    I've checked it on other computers in the office and it works on theirs.

    If I select the shape and type =CS into the formula bar, I don't get an error, but the picture doesn't update anymore.

    If I select the shape and delete what is in the formula bar, (setting the formula value to ""), I get an error.

    Again, this works on everyone else's computer. I've tried every setting in Options I can think of and checked references, but I'm stumped.

    Figured I'd take it to the masses.

    Offending chunk of code:

    --------------------------

    Please Login or Register  to view this content.
    --------------------------

    Please Login or Register  to view this content.
    Last edited by alansidman; 10-26-2023 at 12:55 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2407 Win 11 Home 64 Bit
    Posts
    24,068

    Re: Sudden issue with: DrawingObject.Formula = ""

    Please read the forum rules that you agreed to when you joined.

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Guideline #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here.

    Because you are new here, I have added them for you.

    Rule 7: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

    However, if you continue to crosspost, you can expect to have your thread BLOCKED until you update it yourself.

    https://www.mrexcel.com/board/thread...rmula.1247621/
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-26-2023
    Location
    NE, USA
    MS-Off Ver
    365
    Posts
    2

    Re: Sudden issue with: DrawingObject.Formula = ""

    Apologies and thank you.

+ 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. "All of a sudden" a range seems to dematerialize
    By tfurnivall in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2022, 11:56 AM
  2. [SOLVED] Formula to count "low", "med", or "high" in 4 columns of data split by fiscal quarter
    By Kerry1980 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-11-2022, 06:58 AM
  3. Replies: 3
    Last Post: 11-19-2020, 08:30 PM
  4. [SOLVED] Sudden "Type mismatch error"
    By EdwardStephenson in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-29-2014, 10:49 AM
  5. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  6. Excel 2007 : Sudden "freeze" while executing vba-loop
    By JohnFred in forum Excel General
    Replies: 2
    Last Post: 05-31-2010, 07:49 AM
  7. If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ...
    By Maria J-son in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2006, 08:25 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