PC Review


Reply
Thread Tools Rate Thread

Defined Names response

 
 
LA-Alc
Guest
Posts: n/a
 
      9th Dec 2008

Hi all,

Have a macro that takes a .xlsm file and then saves it back to a '97-2003
..xls file. During the save, the following message shows:

"Defined names or formulas in this workbook may display different values
when they are recalculated in an earlier version of Excel if they:

- Reference cells outside of the row and column limit in an earlier version
of Excel
- Include functions that are not supported...
- Use formula limits that are not supported in ....

Do you want to recalculate all formulas when this workbook is opened?"

What code can I put into the macro to automatically answer 'Yes' to this, or
bypass it completely?

Thanks for any assistance.
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      9th Dec 2008

Haven't tried it myself, but try

Application.DisplayALerts = False

before the save and reset afterwards.

--
__________________________________
HTH

Bob

"LA-Alc" <LA-(E-Mail Removed)> wrote in message
news798D444-0135-47DC-BC89-(E-Mail Removed)...
> Hi all,
>
> Have a macro that takes a .xlsm file and then saves it back to a '97-2003
> .xls file. During the save, the following message shows:
>
> "Defined names or formulas in this workbook may display different values
> when they are recalculated in an earlier version of Excel if they:
>
> - Reference cells outside of the row and column limit in an earlier
> version
> of Excel
> - Include functions that are not supported...
> - Use formula limits that are not supported in ....
>
> Do you want to recalculate all formulas when this workbook is opened?"
>
> What code can I put into the macro to automatically answer 'Yes' to this,
> or
> bypass it completely?
>
> Thanks for any assistance.



 
Reply With Quote
 
LA-Alc
Guest
Posts: n/a
 
      9th Dec 2008

Hi Bob,

Thanks for the assist, but no luck with turning DisplayAlerts off.

Les

"Bob Phillips" wrote:

> Haven't tried it myself, but try
>
> Application.DisplayALerts = False
>
> before the save and reset afterwards.
>
> --
> __________________________________
> HTH
>
> Bob
>
> "LA-Alc" <LA-(E-Mail Removed)> wrote in message
> news798D444-0135-47DC-BC89-(E-Mail Removed)...
> > Hi all,
> >
> > Have a macro that takes a .xlsm file and then saves it back to a '97-2003
> > .xls file. During the save, the following message shows:
> >
> > "Defined names or formulas in this workbook may display different values
> > when they are recalculated in an earlier version of Excel if they:
> >
> > - Reference cells outside of the row and column limit in an earlier
> > version
> > of Excel
> > - Include functions that are not supported...
> > - Use formula limits that are not supported in ....
> >
> > Do you want to recalculate all formulas when this workbook is opened?"
> >
> > What code can I put into the macro to automatically answer 'Yes' to this,
> > or
> > bypass it completely?
> >
> > Thanks for any assistance.

>
>
>

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      9th Dec 2008

That is odd, I just tried it and it works fine.

--
__________________________________
HTH

Bob

"LA-Alc" <(E-Mail Removed)> wrote in message
news:5CD19BDE-BC05-4340-AAAA-(E-Mail Removed)...
> Hi Bob,
>
> Thanks for the assist, but no luck with turning DisplayAlerts off.
>
> Les
>
> "Bob Phillips" wrote:
>
>> Haven't tried it myself, but try
>>
>> Application.DisplayALerts = False
>>
>> before the save and reset afterwards.
>>
>> --
>> __________________________________
>> HTH
>>
>> Bob
>>
>> "LA-Alc" <LA-(E-Mail Removed)> wrote in message
>> news798D444-0135-47DC-BC89-(E-Mail Removed)...
>> > Hi all,
>> >
>> > Have a macro that takes a .xlsm file and then saves it back to a
>> > '97-2003
>> > .xls file. During the save, the following message shows:
>> >
>> > "Defined names or formulas in this workbook may display different
>> > values
>> > when they are recalculated in an earlier version of Excel if they:
>> >
>> > - Reference cells outside of the row and column limit in an earlier
>> > version
>> > of Excel
>> > - Include functions that are not supported...
>> > - Use formula limits that are not supported in ....
>> >
>> > Do you want to recalculate all formulas when this workbook is opened?"
>> >
>> > What code can I put into the macro to automatically answer 'Yes' to
>> > this,
>> > or
>> > bypass it completely?
>> >
>> > Thanks for any assistance.

>>
>>
>>



 
Reply With Quote
 
LA-Alc
Guest
Posts: n/a
 
      10th Dec 2008
Hi Bob,

Thanks for the check. The code that I'm using is:

ActiveWorkbook.SaveAs Filename:= _
NewPO_No _
, FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
Application.DisplayAlerts = False

When I run this, the message still comes up. Doing a bit of searching I'm
not sure if I should be addressing the ConflictResolution parameter of the
save? Yours works, so maybe it's more my code than anything else.

Thanks again.

"Bob Phillips" wrote:

> That is odd, I just tried it and it works fine.
>
> --
> __________________________________
> HTH
>
> Bob
>


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      10th Dec 2008
You have to set

Application.DisplaAlerts = True

before the save.

--
__________________________________
HTH

Bob

"LA-Alc" <(E-Mail Removed)> wrote in message
news:9A8C63B4-7028-4E83-948F-(E-Mail Removed)...
> Hi Bob,
>
> Thanks for the check. The code that I'm using is:
>
> ActiveWorkbook.SaveAs Filename:= _
> NewPO_No _
> , FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
> ReadOnlyRecommended:=False, CreateBackup:=False
> Application.DisplayAlerts = False
>
> When I run this, the message still comes up. Doing a bit of searching I'm
> not sure if I should be addressing the ConflictResolution parameter of the
> save? Yours works, so maybe it's more my code than anything else.
>
> Thanks again.
>
> "Bob Phillips" wrote:
>
>> That is odd, I just tried it and it works fine.
>>
>> --
>> __________________________________
>> HTH
>>
>> Bob
>>

>



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      10th Dec 2008
That should have been

Application.DisplayAlerts = True


--
__________________________________
HTH

Bob

"LA-Alc" <(E-Mail Removed)> wrote in message
news:9A8C63B4-7028-4E83-948F-(E-Mail Removed)...
> Hi Bob,
>
> Thanks for the check. The code that I'm using is:
>
> ActiveWorkbook.SaveAs Filename:= _
> NewPO_No _
> , FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
> ReadOnlyRecommended:=False, CreateBackup:=False
> Application.DisplayAlerts = False
>
> When I run this, the message still comes up. Doing a bit of searching I'm
> not sure if I should be addressing the ConflictResolution parameter of the
> save? Yours works, so maybe it's more my code than anything else.
>
> Thanks again.
>
> "Bob Phillips" wrote:
>
>> That is odd, I just tried it and it works fine.
>>
>> --
>> __________________________________
>> HTH
>>
>> Bob
>>

>



 
Reply With Quote
 
LA-Alc
Guest
Posts: n/a
 
      10th Dec 2008
Ahhh, that would make more sense.

Thanks for the help Bob, appreciate it!

"Bob Phillips" wrote:

> That should have been
>
> Application.DisplayAlerts = True
>
>
> --
> __________________________________
> HTH
>
> Bob
>
> "LA-Alc" <(E-Mail Removed)> wrote in message
> news:9A8C63B4-7028-4E83-948F-(E-Mail Removed)...
> > Hi Bob,
> >
> > Thanks for the check. The code that I'm using is:
> >
> > ActiveWorkbook.SaveAs Filename:= _
> > NewPO_No _
> > , FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
> > ReadOnlyRecommended:=False, CreateBackup:=False
> > Application.DisplayAlerts = False
> >
> > When I run this, the message still comes up. Doing a bit of searching I'm
> > not sure if I should be addressing the ConflictResolution parameter of the
> > save? Yours works, so maybe it's more my code than anything else.
> >
> > Thanks again.
> >
> > "Bob Phillips" wrote:
> >
> >> That is odd, I just tried it and it works fine.
> >>
> >> --
> >> __________________________________
> >> HTH
> >>
> >> Bob
> >>

> >

>
>
>

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      10th Dec 2008
Hopefully, final posting with the correct info

Application.DisplayAlerts = False

ActiveWorkbook.SaveAs Filename:= _
NewPO_No _
, FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False

Application.DisplayAlerts = True

That is how it should be.

--
__________________________________
HTH

Bob

"LA-Alc" <(E-Mail Removed)> wrote in message
news:0FA8F4BB-CDAF-448B-A6E8-(E-Mail Removed)...
> Ahhh, that would make more sense.
>
> Thanks for the help Bob, appreciate it!
>
> "Bob Phillips" wrote:
>
>> That should have been
>>
>> Application.DisplayAlerts = True
>>
>>
>> --
>> __________________________________
>> HTH
>>
>> Bob
>>
>> "LA-Alc" <(E-Mail Removed)> wrote in message
>> news:9A8C63B4-7028-4E83-948F-(E-Mail Removed)...
>> > Hi Bob,
>> >
>> > Thanks for the check. The code that I'm using is:
>> >
>> > ActiveWorkbook.SaveAs Filename:= _
>> > NewPO_No _
>> > , FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
>> > ReadOnlyRecommended:=False, CreateBackup:=False
>> > Application.DisplayAlerts = False
>> >
>> > When I run this, the message still comes up. Doing a bit of searching
>> > I'm
>> > not sure if I should be addressing the ConflictResolution parameter of
>> > the
>> > save? Yours works, so maybe it's more my code than anything else.
>> >
>> > Thanks again.
>> >
>> > "Bob Phillips" wrote:
>> >
>> >> That is odd, I just tried it and it works fine.
>> >>
>> >> --
>> >> __________________________________
>> >> HTH
>> >>
>> >> Bob
>> >>
>> >

>>
>>
>>



 
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
Defined names s_smith_iet@hotmail.com Microsoft Excel Programming 4 24th Aug 2008 09:03 PM
Adding names to a cell - application-defined or object-defined error Chris Microsoft Excel Discussion 1 20th Sep 2007 08:31 PM
no response on defined views =?Utf-8?B?QWRyaWFuVA==?= Microsoft Outlook Discussion 2 2nd Dec 2005 07:56 PM
CHANGE COLUMN NAMES TO DEFINED NAMES =?Utf-8?B?RGF2aWQgQCBFbGl0ZQ==?= Microsoft Excel Misc 1 5th Oct 2004 04:29 PM
Use defined names in VBA? JRocket02 Microsoft Excel Misc 1 3rd Aug 2004 06:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:02 PM.