+ Reply to Thread
Results 1 to 2 of 2

Name conflict error due to shape assigned with macro that needs arguments

  1. #1
    Registered User
    Join Date
    10-17-2012
    Location
    India
    MS-Off Ver
    Excel 2012
    Posts
    9

    Name conflict error due to shape assigned with macro that needs arguments

    I have a worksheet which has a shape assigned with a shape. The shape is assigned to a sub routine which requires a parameter.

    I have assigned the macro as 'SubRotineName(Parameter)' (Including the single quotes)

    The macro works fine when I'm clicking it. But, when i try to change the reference style between R1C1 to A1, it throws a name conflict error.

    Regardless of whether the reference style is A1 or R1C1, before I try to change the style, the same error appears.

    Can anybody help why this happens and how to avoid it?
    Attached Files Attached Files

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Name conflict error due to shape assigned with macro that needs arguments

    Hi,

    To the best of my knowledge, this capability has never been officially documented- as mentioned here http://www.tushar-mehta.com/excel/vb...0arguments.htm

    That means that I doubt you will find a definitive answer as to why this happens. If you need to change reference styles I suggest you use an alternative method to pass the argument such as the Alt Text of the shape, or including it in the name. You should also know that if you save the workbook in .xlsb format, it will be regarded as corrupt when you try to reopen it if you have any shapes using this method.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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. Excel Upgrade to 2013, Macro runs erratically with macro assigned to button (shape)
    By sspatriots in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2016, 07:23 PM
  2. Compile Error : Wrong no of arguments or invalid property assigned.
    By kkqazi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2015, 07:18 AM
  3. Shape Position Locks When Assigned a Macro
    By primed in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-31-2014, 11:27 AM
  4. Conditional formatting on shape assigned macro
    By arvindm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2013, 11:10 AM
  5. Replies: 0
    Last Post: 11-30-2012, 01:29 PM
  6. Arguments are of the wrong type, are out of acceptable range, or are in conflict with
    By Rushdy Najath in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2012, 11:25 AM
  7. shape (with macro assigned) flashes upon click
    By grime in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2006, 01:40 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