+ Reply to Thread
Results 1 to 4 of 4

Problem with spontaneously-generated "Database" range name

  1. #1
    Registered User
    Join Date
    04-11-2010
    Location
    Burnaby, BC
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    2

    Problem with spontaneously-generated "Database" range name

    Has anyone noticed Excel spontaneously generating range names? I know it does this with Print Ranges, but one I've found to be a real problem is "Database". This range name is applied (without my noticing) to a set of rows/records that meet Excel's criteria for a simple database. And this is fine until I later add columns at the beginning or on the end of my original database. The spontaneously-generated range name does not include these new columns. As a result, the usual database functions (sort, column filtering, etc.) only operate on the columns included in the named "Database" and exclude the newly added columns. If I haven't noticed this, then my database becomes useless if I perform a sort function as Excel only sorts the columns in "Database" and leaves the newly-added ones as is.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Problem with spontaneously-generated "Database" range name

    There are a few names that Excel "generates", Database is one, Print_Area is another one that I can think of. I thought Database changed but try using a Dynamic named Range and calling it MyData
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Problem with spontaneously-generated "Database" range name

    Just checked up
    ExcelŽ 2007 VBA
    Programmer’s Reference
    Authors;
    John Green
    Stephen Bullen
    Rob Bovey
    Michael Alexander
    To summarize, you need to take care when using the following names:
    ❑ Criteria
    ❑ Database
    ❑ Extract
    ❑ Print_Area
    ❑ Print_Titles
    ❑ Tablen
    Page 163, Chapter 5.
    Last edited by royUK; 04-11-2010 at 01:48 PM.

  4. #4
    Registered User
    Join Date
    04-11-2010
    Location
    Burnaby, BC
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    2

    Re: Problem with spontaneously-generated "Database" range name

    Thanks RoyUK. This is a problem I've only noticed in the last 6 months or so...and not just in my spreadsheets. A colleague noticed the same problem as well. One of the solutions I tried was to add an empty column to the end of all my large databases with a header label "Last" and make sure it's included in "Database". Then as long as I add any new columns before the "Last" one, I should be okay because "Database" will expand to include the new column.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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