Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 920497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:43:28+00:00 2026-05-15T18:43:28+00:00

Win-XP, Excel 2003 I have a range defined by a name, which is filled

  • 0

Win-XP, Excel 2003

I have a range defined by a name, which is filled by a query. The same named range forms the source of a cell validation (in-cell dropdown list). In my VBA this range is accessed via a range object named LOVL2.

Each time the range is re-filled by the query, its name is redefined to include all rows I obtained through the query. This is done with statement

LOVL2.CurrentRegion.Name = LOVL2.Name.Name

the statement works fine as long as MS Office language is set to English, but the statement fails when MS office language is set to French …. I get Error 1004 “Invalid Name”

Anyone got an idea what is causing this only when MS Office language is set to FRENCH but not while in ENGLISH? (maybe problem with “;” vs “,” within the object ??)

Thanks in advance MikeD


edit 12-Aug-2010

the REAL root cause is clear now:

the range’s name is “L2PoP” which in the ENGLISH version is recognized as a valid name for a range – in that you can go to any empty sheet, select a range and name it “L2PoP”.

Set your user language to FRENCH, go to any empty sheet, select a range and name it “L2PoP”, and you get an error saying “Nom non valide”.

so the real curing action is to give a different name to the range which is accepted by both French and English

I can only speculate about what is causing this, it may have to do with the fact that the first 2 characters look like a cell address, on the other hand “A1PoP ” is a valid name, whereas “L2Foo” and “L1Foo” are invalid.

strange, but …..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T18:43:28+00:00Added an answer on May 15, 2026 at 6:43 pm

    which is filled by a query

    By a query table?
    A query table’s result range already has a name which is the name (a bit sanitised) of the query table itself (set in the properties dialog). Which means you don’t need to redefine anything.

    And if you do, then try this code:

    Sub asfgsdfg()
    
      Dim n As Name
      Set n = ThisWorkbook.Names("LOVL2")
    
      'Or in case of a local name,
      'Set n = ThisWorkbook.Worksheets("The worksheet").Names("LOVL2")
    
      ChangeNamedRangeAddress n, n.RefersToRange.CurrentRegion
    
    End Sub
    
    Public Sub ChangeNamedRangeAddress(ByVal n As Name, ByVal NewRange As Range)
      n.RefersTo = "='" & Replace(n.RefersToRange.Worksheet.Name, "'", "''") & "'!" & NewRange.Address(True, True, xlA1)
    End Sub
    

    EDIT

    In regard to the follow-up… Most strange and amusing.

    Try using a leading underscore or something?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 458k
  • Answers 458k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer A couple things come to mind. First, your label has… May 15, 2026 at 11:04 pm
  • Editorial Team
    Editorial Team added an answer You should map new route in the global.asax (add it… May 15, 2026 at 11:04 pm
  • Editorial Team
    Editorial Team added an answer The interface KeyListener contain three methods: void keyTyped(KeyEvent) void keyPressed(KeyEvent)… May 15, 2026 at 11:04 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.