Avatar of timgreen7077
timgreen7077

asked on 

Excel 2007

I have a user that imported data to an excel doc and when he tries to open it this is the message he gets: "name cannot be same as builtin name" Embedded is what the user is getting. I tried renaming the file, i tried putting a new name in the text field but nothing works. The file is saved as a .xls and not the newer .xlsx The user is using office 2007. You can't open the file, when you try to the name confilict windows opens. Do any of you have any ideas on this. User generated image
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
timgreen7077
ASKER CERTIFIED SOLUTION
Avatar of Anil
Anil
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of timgreen7077
timgreen7077

ASKER

the 3 option worked. any idea what cause this? we can't expect the user to do this everytime.
Avatar of AccountingDev
AccountingDev

It appears you have an error on a Named Selection ie the Name of Range(A4:C19);  You can do something to the effect of
 
    Workbooks.Open Filename:= _
        FILETOCOPY
    Sheets("SHEETTOCOPY").Copy After:=Workbooks( _
        "DESTINATIONFILE.EXT").Sheets("Sheet1")
    Windows("FILETOCOPY.EXT").Activate
    ActiveWindow.Close   

Open in new window

  This would copy in the entire sheet, and you can do an array of sheets as well, or you can just c/p into an existing sheet:
    Workbooks.Open Filename:= _
        FILETOCOPY
    Sheets("SHEETTOCOPY").Select
    Cells.Copy
    Worksbooks("DESTINATIONFILE.EXT").Activate
         Sheets("DESTIONATIONSHEET").Select
    [a1].PasteSpecial xlPasteValues
    Application.CutCopyMode = False

Open in new window

Avatar of Anil
Anil
Flag of United Kingdom of Great Britain and Northern Ireland image

When this happened to me I went to the named ranges dialog and looked for that particular name reange and deleted  it.
I then changed its scope and redefined it in Excel 2007.

A>
Avatar of timgreen7077
timgreen7077

ASKER

thanks
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo