Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
MAB MAB is offline
external usenet poster
 
Posts: 40
Default Is it possible to prevent error message displays?

I have an Excel 2003 file that is giving me the following error message when
I open it, or click on one of the graphs in the file:

€śNegative or zero values cannot be plotted correctly on log charts. Only
positive values can be interpreted on a logarithmic scale. To correct the
problem, do one of the following:€ť

Of the two suggestions listed to fix this problem, one is not an option (do
not use -0 amounts), and the other does not work (clearing the Logarithmic
scale checkbox).

Can I use the €śApplication.DisplayAlerts = False€ť command when opening the
file in order to prevent the error from shoeing? If so, where would I use it
or where would I insert it? Im not educated in creating code or extensive
macro work.

Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default Is it possible to prevent error message displays?

In the Thisworkbook module, Try the following code:

Private Sub Workbook_Open()
Application.DisplayAlerts = False
End Sub

One word of caution, not setting alerts back to true can suppress other
messages you intend to display elsewhere.

MAB wrote:
I have an Excel 2003 file that is giving me the following error message when
I open it, or click on one of the graphs in the file:

"Negative or zero values cannot be plotted correctly on log charts. Only
positive values can be interpreted on a logarithmic scale. To correct the
problem, do one of the following:"

Of the two suggestions listed to fix this problem, one is not an option (do
not use -0 amounts), and the other does not work (clearing the Logarithmic
scale checkbox).

Can I use the "Application.DisplayAlerts = False" command when opening the
file in order to prevent the error from shoeing? If so, where would I use it
or where would I insert it? I'm not educated in creating code or extensive
macro work.

Thank you in advance.


  #3   Report Post  
Posted to microsoft.public.excel.programming
MAB MAB is offline
external usenet poster
 
Posts: 40
Default Is it possible to prevent error message displays?

I don't have a Thisworkbook module. I just see Module1 and Module 3. Any
ideas?

Thanks.

" wrote:

In the Thisworkbook module, Try the following code:

Private Sub Workbook_Open()
Application.DisplayAlerts = False
End Sub

One word of caution, not setting alerts back to true can suppress other
messages you intend to display elsewhere.

MAB wrote:
I have an Excel 2003 file that is giving me the following error message when
I open it, or click on one of the graphs in the file:

"Negative or zero values cannot be plotted correctly on log charts. Only
positive values can be interpreted on a logarithmic scale. To correct the
problem, do one of the following:"

Of the two suggestions listed to fix this problem, one is not an option (do
not use -0 amounts), and the other does not work (clearing the Logarithmic
scale checkbox).

Can I use the "Application.DisplayAlerts = False" command when opening the
file in order to prevent the error from shoeing? If so, where would I use it
or where would I insert it? I'm not educated in creating code or extensive
macro work.

Thank you in advance.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default Is it possible to prevent error message displays?

In the VBA project explorer expand the "VBA Project (Yourworkbook.xls)
folder. Then expand the "Microsoft Excel Objects" folder. The workbook
module is below this level.

MAB wrote:
I don't have a Thisworkbook module. I just see Module1 and Module 3. Any
ideas?

Thanks.

" wrote:

In the Thisworkbook module, Try the following code:

Private Sub Workbook_Open()
Application.DisplayAlerts = False
End Sub

One word of caution, not setting alerts back to true can suppress other
messages you intend to display elsewhere.

MAB wrote:
I have an Excel 2003 file that is giving me the following error message when
I open it, or click on one of the graphs in the file:

"Negative or zero values cannot be plotted correctly on log charts. Only
positive values can be interpreted on a logarithmic scale. To correct the
problem, do one of the following:"

Of the two suggestions listed to fix this problem, one is not an option (do
not use -0 amounts), and the other does not work (clearing the Logarithmic
scale checkbox).

Can I use the "Application.DisplayAlerts = False" command when opening the
file in order to prevent the error from shoeing? If so, where would I use it
or where would I insert it? I'm not educated in creating code or extensive
macro work.

Thank you in advance.




  #5   Report Post  
Posted to microsoft.public.excel.programming
MAB MAB is offline
external usenet poster
 
Posts: 40
Default Is it possible to prevent error message displays?

Oh my... :-p

Could I then use this in the same module?

Private Sub Workbook_Close()
Application.DisplayAlerts = True
End Sub

Thanks again.

" wrote:

In the VBA project explorer expand the "VBA Project (Yourworkbook.xls)
folder. Then expand the "Microsoft Excel Objects" folder. The workbook
module is below this level.

MAB wrote:
I don't have a Thisworkbook module. I just see Module1 and Module 3. Any
ideas?

Thanks.

" wrote:

In the Thisworkbook module, Try the following code:

Private Sub Workbook_Open()
Application.DisplayAlerts = False
End Sub

One word of caution, not setting alerts back to true can suppress other
messages you intend to display elsewhere.

MAB wrote:
I have an Excel 2003 file that is giving me the following error message when
I open it, or click on one of the graphs in the file:

"Negative or zero values cannot be plotted correctly on log charts. Only
positive values can be interpreted on a logarithmic scale. To correct the
problem, do one of the following:"

Of the two suggestions listed to fix this problem, one is not an option (do
not use -0 amounts), and the other does not work (clearing the Logarithmic
scale checkbox).

Can I use the "Application.DisplayAlerts = False" command when opening the
file in order to prevent the error from shoeing? If so, where would I use it
or where would I insert it? I'm not educated in creating code or extensive
macro work.

Thank you in advance.






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Is it possible to prevent error message displays?

why not see if it works first. My **guess** is that the message is being
displayed before the macro runs - but you tell us.

--
Regards,
Tom Ogilvy


"MAB" wrote:

Oh my... :-p

Could I then use this in the same module?

Private Sub Workbook_Close()
Application.DisplayAlerts = True
End Sub

Thanks again.

" wrote:

In the VBA project explorer expand the "VBA Project (Yourworkbook.xls)
folder. Then expand the "Microsoft Excel Objects" folder. The workbook
module is below this level.

MAB wrote:
I don't have a Thisworkbook module. I just see Module1 and Module 3. Any
ideas?

Thanks.

" wrote:

In the Thisworkbook module, Try the following code:

Private Sub Workbook_Open()
Application.DisplayAlerts = False
End Sub

One word of caution, not setting alerts back to true can suppress other
messages you intend to display elsewhere.

MAB wrote:
I have an Excel 2003 file that is giving me the following error message when
I open it, or click on one of the graphs in the file:

"Negative or zero values cannot be plotted correctly on log charts. Only
positive values can be interpreted on a logarithmic scale. To correct the
problem, do one of the following:"

Of the two suggestions listed to fix this problem, one is not an option (do
not use -0 amounts), and the other does not work (clearing the Logarithmic
scale checkbox).

Can I use the "Application.DisplayAlerts = False" command when opening the
file in order to prevent the error from shoeing? If so, where would I use it
or where would I insert it? I'm not educated in creating code or extensive
macro work.

Thank you in advance.




  #7   Report Post  
Posted to microsoft.public.excel.programming
MAB MAB is offline
external usenet poster
 
Posts: 40
Default Is it possible to prevent error message displays?

Yeah, sorry, I should have tried right away.

I just tried that code and the error message still displays.

"Tom Ogilvy" wrote:

why not see if it works first. My **guess** is that the message is being
displayed before the macro runs - but you tell us.

--
Regards,
Tom Ogilvy


"MAB" wrote:

Oh my... :-p

Could I then use this in the same module?

Private Sub Workbook_Close()
Application.DisplayAlerts = True
End Sub

Thanks again.

" wrote:

In the VBA project explorer expand the "VBA Project (Yourworkbook.xls)
folder. Then expand the "Microsoft Excel Objects" folder. The workbook
module is below this level.

MAB wrote:
I don't have a Thisworkbook module. I just see Module1 and Module 3. Any
ideas?

Thanks.

" wrote:

In the Thisworkbook module, Try the following code:

Private Sub Workbook_Open()
Application.DisplayAlerts = False
End Sub

One word of caution, not setting alerts back to true can suppress other
messages you intend to display elsewhere.

MAB wrote:
I have an Excel 2003 file that is giving me the following error message when
I open it, or click on one of the graphs in the file:

"Negative or zero values cannot be plotted correctly on log charts. Only
positive values can be interpreted on a logarithmic scale. To correct the
problem, do one of the following:"

Of the two suggestions listed to fix this problem, one is not an option (do
not use -0 amounts), and the other does not work (clearing the Logarithmic
scale checkbox).

Can I use the "Application.DisplayAlerts = False" command when opening the
file in order to prevent the error from shoeing? If so, where would I use it
or where would I insert it? I'm not educated in creating code or extensive
macro work.

Thank you in advance.




  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default Is it possible to prevent error message displays?

Here is any idea you can try...To be honest I am not sure it will work
for you..but it might be worth a try.
In you work book add.

Private Sub Workbook_Open()
Err.Clear
End Sub

then in the event like click for your form
add some code like:

Private Sub CommandButton1_Click()

On Error GoTo errorhandle
' your task

Exit Sub
errorhandle:

Err.Clear
End Sub

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Is it possible to prevent error message displays?

Is this posted in the correct thread? It doesn't appear to have any
relevance to this thread

--
Regards,
Tom Ogilvy


"stevebriz" wrote:

Here is any idea you can try...To be honest I am not sure it will work
for you..but it might be worth a try.
In you work book add.

Private Sub Workbook_Open()
Err.Clear
End Sub

then in the event like click for your form
add some code like:

Private Sub CommandButton1_Click()

On Error GoTo errorhandle
' your task

Exit Sub
errorhandle:

Err.Clear
End Sub


  #10   Report Post  
Posted to microsoft.public.excel.programming
MAB MAB is offline
external usenet poster
 
Posts: 40
Default Is it possible to prevent error message displays?

Are there any other suggestions or ideas?

Thanks.

"Tom Ogilvy" wrote:

Is this posted in the correct thread? It doesn't appear to have any
relevance to this thread

--
Regards,
Tom Ogilvy


"stevebriz" wrote:

Here is any idea you can try...To be honest I am not sure it will work
for you..but it might be worth a try.
In you work book add.

Private Sub Workbook_Open()
Err.Clear
End Sub

then in the event like click for your form
add some code like:

Private Sub CommandButton1_Click()

On Error GoTo errorhandle
' your task

Exit Sub
errorhandle:

Err.Clear
End Sub




  #11   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Is it possible to prevent error message displays?

The problem as I understand it is you want to use a graph type with data
that is not supported by that graph type.


I would say you need to transform your data so it works with the graph type,
then label your graph so it appears to represent the original values.

Or you can use a dummy column perhaps and suppress the incompatible values,
then graph that.

--
Regards,
Tom Ogilvy



"MAB" wrote in message
...
Are there any other suggestions or ideas?

Thanks.

"Tom Ogilvy" wrote:

Is this posted in the correct thread? It doesn't appear to have any
relevance to this thread

--
Regards,
Tom Ogilvy


"stevebriz" wrote:

Here is any idea you can try...To be honest I am not sure it will work
for you..but it might be worth a try.
In you work book add.

Private Sub Workbook_Open()
Err.Clear
End Sub

then in the event like click for your form
add some code like:

Private Sub CommandButton1_Click()

On Error GoTo errorhandle
' your task

Exit Sub
errorhandle:

Err.Clear
End Sub




  #12   Report Post  
Posted to microsoft.public.excel.programming
MAB MAB is offline
external usenet poster
 
Posts: 40
Default Is it possible to prevent error message displays?

I will try this.

Thanks for all your help.

"Tom Ogilvy" wrote:

The problem as I understand it is you want to use a graph type with data
that is not supported by that graph type.


I would say you need to transform your data so it works with the graph type,
then label your graph so it appears to represent the original values.

Or you can use a dummy column perhaps and suppress the incompatible values,
then graph that.

--
Regards,
Tom Ogilvy



"MAB" wrote in message
...
Are there any other suggestions or ideas?

Thanks.

"Tom Ogilvy" wrote:

Is this posted in the correct thread? It doesn't appear to have any
relevance to this thread

--
Regards,
Tom Ogilvy


"stevebriz" wrote:

Here is any idea you can try...To be honest I am not sure it will work
for you..but it might be worth a try.
In you work book add.

Private Sub Workbook_Open()
Err.Clear
End Sub

then in the event like click for your form
add some code like:

Private Sub CommandButton1_Click()

On Error GoTo errorhandle
' your task

Exit Sub
errorhandle:

Err.Clear
End Sub





  #13   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default Is it possible to prevent error message displays?

Try a search in this group using part of your error message. There are
a few other threads that may yield some results.

MAB wrote:
Are there any other suggestions or ideas?

Thanks.

"Tom Ogilvy" wrote:

Is this posted in the correct thread? It doesn't appear to have any
relevance to this thread

--
Regards,
Tom Ogilvy


"stevebriz" wrote:

Here is any idea you can try...To be honest I am not sure it will work
for you..but it might be worth a try.
In you work book add.

Private Sub Workbook_Open()
Err.Clear
End Sub

then in the event like click for your form
add some code like:

Private Sub CommandButton1_Click()

On Error GoTo errorhandle
' your task

Exit Sub
errorhandle:

Err.Clear
End Sub



  #14   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Is it possible to prevent error message displays?

Hi,

Try the code below, place it the 'This Workbook' module as per the below
email thread.

Private Sub Workbook_Open()
ThisWorkbook.Application.DisplayAlerts = False
ThisWorkbook.Charts.Application.DisplayAlerts = False

End Sub

Good luck,

Damo

" wrote:

Try a search in this group using part of your error message. There are
a few other threads that may yield some results.

MAB wrote:
Are there any other suggestions or ideas?

Thanks.

"Tom Ogilvy" wrote:

Is this posted in the correct thread? It doesn't appear to have any
relevance to this thread

--
Regards,
Tom Ogilvy


"stevebriz" wrote:

Here is any idea you can try...To be honest I am not sure it will work
for you..but it might be worth a try.
In you work book add.

Private Sub Workbook_Open()
Err.Clear
End Sub

then in the event like click for your form
add some code like:

Private Sub CommandButton1_Click()

On Error GoTo errorhandle
' your task

Exit Sub
errorhandle:

Err.Clear
End Sub




  #15   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Is it possible to prevent error message displays?


Guys, it's a bug in Excel (99% chance) or a virus (1% chance).

Reasoning:
I regularly get the same error message on a spreadsheet of mine. Th
spreadsheet contains a logarithmic chart but none of the values ar
ever zero or negative. The spreadsheet contains no macros. I have
firewall and multiple anti-spyware and anti-virus programs running an
have used them to check the spreadsheet and they all say it's fine.

PS
Sorry if this is the wrong forum :-

--
Whitey Magi
-----------------------------------------------------------------------
Whitey Magic's Profile: http://www.officehelp.in/member.php?userid=521
View this thread: http://www.officehelp.in/showthread.php?t=117725

Posted from - http://www.officehelp.i

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
If Formula displays error message Sherees Excel Discussion (Misc queries) 3 January 24th 10 11:13 AM
how to prevent zero error message for logarithmic plots jlrosner Charts and Charting in Excel 2 February 18th 09 08:41 PM
How to prevent error message during macro excelnut1954 Excel Programming 3 April 7th 06 03:07 PM
How to write a formula that will prevent appearance ERROR MESSAGE Huriiii Excel Worksheet Functions 1 June 22nd 05 12:45 AM
Prevent Error Message phil Excel Programming 3 January 26th 05 06:48 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"