PC Review


Reply
Thread Tools Rate Thread

Conflict with Valid Range Reference Error in Microsoft Excel 2007

 
 
Vamsi
Guest
Posts: n/a
 
      2nd Mar 2009
Hi,

While converting the Macros enabled Microsoft Excel 2003 to Microsoft Excel
2007 format, I am getting the following Conflict with Valid Range Reference
Error. After clicking on the Ok\OK to All buttons the VBA code in the Excel
is not working as it is expected to.

The following is the Error message.

"The name, rev02, either conflicts with a valid range reference or is
invalid for excel. The name has been replaced with _rev02.

You may still need to manually update any references to this name used in
VBA code or as text arguments in functions. You must close and reopen the
workbook before these changes take effect."

and prompting for Ok\OK to All button.

Please pass on any pointers for resolving this issue.

--
Thanks in Advance,
Vamsi
 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      2nd Mar 2009
It is telling you that in xl2007, it has a column header REV which causes a
conflict with with a file name or some other name in your xl2003 files that
contain rev, so you need to use a subscript line (_) to distinguish that what
you are transferring in is not a range reference. Excel has done it for you,
but you need to save the file to make the change effective.

"Vamsi" wrote:

> Hi,
>
> While converting the Macros enabled Microsoft Excel 2003 to Microsoft Excel
> 2007 format, I am getting the following Conflict with Valid Range Reference
> Error. After clicking on the Ok\OK to All buttons the VBA code in the Excel
> is not working as it is expected to.
>
> The following is the Error message.
>
> "The name, rev02, either conflicts with a valid range reference or is
> invalid for excel. The name has been replaced with _rev02.
>
> You may still need to manually update any references to this name used in
> VBA code or as text arguments in functions. You must close and reopen the
> workbook before these changes take effect."
>
> and prompting for Ok\OK to All button.
>
> Please pass on any pointers for resolving this issue.
>
> --
> Thanks in Advance,
> Vamsi

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      2nd Mar 2009
xl2007 has 16k columns.

That means that names that worked ok in xl2003 and below may look like addresses
of cells in xl2007 (IV isn't the last column anymore).

You'll have to change the name.

And excel won't change your code--you'll have to do that yourself. That's what
the warning means.

And excel won't change any formulas that use that name as text:
=indirect("rev02")
won't get fixed automatically.

Vamsi wrote:
>
> Hi,
>
> While converting the Macros enabled Microsoft Excel 2003 to Microsoft Excel
> 2007 format, I am getting the following Conflict with Valid Range Reference
> Error. After clicking on the Ok\OK to All buttons the VBA code in the Excel
> is not working as it is expected to.
>
> The following is the Error message.
>
> "The name, rev02, either conflicts with a valid range reference or is
> invalid for excel. The name has been replaced with _rev02.
>
> You may still need to manually update any references to this name used in
> VBA code or as text arguments in functions. You must close and reopen the
> workbook before these changes take effect."
>
> and prompting for Ok\OK to All button.
>
> Please pass on any pointers for resolving this issue.
>
> --
> Thanks in Advance,
> Vamsi


--

Dave Peterson
 
Reply With Quote
 
Vamsi
Guest
Posts: n/a
 
      3rd Mar 2009
Hi Dave,

Can you please elaborate on your reply.


"Dave Peterson" wrote:

> xl2007 has 16k columns.
>
> That means that names that worked ok in xl2003 and below may look like addresses
> of cells in xl2007 (IV isn't the last column anymore).
>
> You'll have to change the name.
>
> And excel won't change your code--you'll have to do that yourself. That's what
> the warning means.
>
> And excel won't change any formulas that use that name as text:
> =indirect("rev02")
> won't get fixed automatically.
>
> Vamsi wrote:
> >
> > Hi,
> >
> > While converting the Macros enabled Microsoft Excel 2003 to Microsoft Excel
> > 2007 format, I am getting the following Conflict with Valid Range Reference
> > Error. After clicking on the Ok\OK to All buttons the VBA code in the Excel
> > is not working as it is expected to.
> >
> > The following is the Error message.
> >
> > "The name, rev02, either conflicts with a valid range reference or is
> > invalid for excel. The name has been replaced with _rev02.
> >
> > You may still need to manually update any references to this name used in
> > VBA code or as text arguments in functions. You must close and reopen the
> > workbook before these changes take effect."
> >
> > and prompting for Ok\OK to All button.
> >
> > Please pass on any pointers for resolving this issue.
> >
> > --
> > Thanks in Advance,
> > Vamsi

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      3rd Mar 2009
There are some strings that can't be used for names--things that look like
addresses of ranges. There are characters that are invalid in names, so they
can't be used.

Your name looks like a cell address. Excel won't allow it to be used.

Vamsi wrote:
>
> Hi Dave,
>
> Can you please elaborate on your reply.
>
> "Dave Peterson" wrote:
>
> > xl2007 has 16k columns.
> >
> > That means that names that worked ok in xl2003 and below may look like addresses
> > of cells in xl2007 (IV isn't the last column anymore).
> >
> > You'll have to change the name.
> >
> > And excel won't change your code--you'll have to do that yourself. That's what
> > the warning means.
> >
> > And excel won't change any formulas that use that name as text:
> > =indirect("rev02")
> > won't get fixed automatically.
> >
> > Vamsi wrote:
> > >
> > > Hi,
> > >
> > > While converting the Macros enabled Microsoft Excel 2003 to Microsoft Excel
> > > 2007 format, I am getting the following Conflict with Valid Range Reference
> > > Error. After clicking on the Ok\OK to All buttons the VBA code in the Excel
> > > is not working as it is expected to.
> > >
> > > The following is the Error message.
> > >
> > > "The name, rev02, either conflicts with a valid range reference or is
> > > invalid for excel. The name has been replaced with _rev02.
> > >
> > > You may still need to manually update any references to this name used in
> > > VBA code or as text arguments in functions. You must close and reopen the
> > > workbook before these changes take effect."
> > >
> > > and prompting for Ok\OK to All button.
> > >
> > > Please pass on any pointers for resolving this issue.
> > >
> > > --
> > > Thanks in Advance,
> > > Vamsi

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The name ... either conflicts with a valid range reference or isinvalid for Excel. Greg Lovern Microsoft Excel Programming 3 2nd Apr 2008 06:52 PM
Microsoft Excel 2003 "reference is not valid" error =?Utf-8?B?UmVmZXJlbmNlIGVycm9y?= Microsoft Access 1 16th Sep 2007 10:51 PM
Named range reference in VBA for Excel 2007 Mike Microsoft Excel Programming 1 12th Sep 2007 09:33 PM
Excel 2007 - Reference is not valid carryt Microsoft Excel Misc 1 3rd Aug 2007 09:44 PM
Conflict with valid range reference error =?Utf-8?B?c21hcnV6emk=?= Microsoft Excel Misc 1 14th Mar 2007 10:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:06 AM.