+ Reply to Thread
Results 1 to 13 of 13

Problem between Excel english / french

Hybrid View

Cyberitch Problem between Excel english... 08-13-2008, 03:20 PM
arthurbr Hi Ritch and welcome to the... 08-14-2008, 11:53 AM
Cyberitch Yes it highlight this line. 08-15-2008, 12:25 PM
Cyberitch So anyone, any idea? 08-20-2008, 07:09 PM
Andy Pope the OnAction property expects... 08-21-2008, 01:58 PM
martindwilson possibly, try it or maybe... 08-24-2008, 08:22 PM
Cyberitch No luck, any other idea I... 08-29-2008, 11:45 AM
  1. #1
    Registered User
    Join Date
    08-13-2008
    Location
    Montreal
    Posts
    7

    Problem between Excel english / french

    This is probably a bug, but Im looking for a way to bypass the problem.

    I dynamically (VBA) add dropdown list on top of some cells and set a call to a macro on the OnAction command like this:
    With Worksheets("Page1")
        Set lb = .Shapes.AddFormControl(xlDropDown, Range("$G$2").Left, Range("$G$2").Top - 1, Range("$G$2").Width, 15.75)
        lb.ControlFormat.ListFillRange = "PagePara!$J$2:$J$4"
        lb.ControlFormat.LinkedCell = "$G$2"
        lb.OnAction = "MacroAutoComplete!R1C1:R5C1"
    End With
    When Excel is in english, no problem, when Excel is in french the OnAction give me an execution error '1004' the formula is to complicated to be affected to the object (translated from french...).

    I suspect that in french the reference "MacroAutoComplete!R1C1:R5C1" is not possible. What should be the universal compatible way to set the reference?

    Thanks.
    ~Ritch

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi Ritch and welcome to the board
    Does the debugger give the line with the RC ref as the wrong one?

  3. #3
    Registered User
    Join Date
    08-13-2008
    Location
    Montreal
    Posts
    7
    Yes it highlight this line.

  4. #4
    Registered User
    Join Date
    08-13-2008
    Location
    Montreal
    Posts
    7
    So anyone, any idea?

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,482
    the OnAction property expects a macro name not a range

    what exactly is the code trying to do?
    Cheers
    Andy
    www.andypope.info

  6. #6
    Registered User
    Join Date
    08-13-2008
    Location
    Montreal
    Posts
    7
    "MacroAutoComplete" is a Macrosheet 4.0 and "R1C1:R5C1" is the row:column reference where are the macro command on the sheet.

    And dont forget its wokring with english excel version, the problem occur only with french version.

    So maybe there's another way to give the OnAction event the sheet!row:column reference?
    Last edited by Cyberitch; 08-21-2008 at 06:11 PM.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    possibly, try it or maybe
    OnAction = "MacroAutoComplete!Cells(1, 1).Cells(5, 1)"

  8. #8
    Registered User
    Join Date
    08-13-2008
    Location
    Montreal
    Posts
    7
    No luck, any other idea I could try?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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