ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Opening workbook - get error message : unreadable content, lostvbproject (https://www.excelbanter.com/excel-programming/418647-opening-workbook-get-error-message-unreadable-content-lostvbproject.html)

[email protected]

Opening workbook - get error message : unreadable content, lostvbproject
 
Dear All,

I am opening a workbook and on opening I am disabling macros and
opening read-only. I also have enableEvents set to false.

The problem I have is the file I am opening give an error message
saying the that these is unreadable content. When I press ok I get
message saying lost vb content.

If I open the file outside vba (the excel) it asks me to enable macros
but there is no vba projects.

Is there any way to suppress this message in vba (and indeed all
messages)

Thanks in advance

Mac

joel

Opening workbook - get error message : unreadable content, lost vb
 
There is a microsoft application recovery tool that you can use. Depending
on which version of Office you have installed it may be in a slightly
different location. For Office 2003

Start - Microsoft Office - Microsoft Offfice Tools - Application Recovery.

Then select Excel Application

" wrote:

Dear All,

I am opening a workbook and on opening I am disabling macros and
opening read-only. I also have enableEvents set to false.

The problem I have is the file I am opening give an error message
saying the that these is unreadable content. When I press ok I get
message saying lost vb content.

If I open the file outside vba (the excel) it asks me to enable macros
but there is no vba projects.

Is there any way to suppress this message in vba (and indeed all
messages)

Thanks in advance

Mac


[email protected]

Opening workbook - get error message : unreadable content, lostvb
 
On 17 Oct, 14:37, Joel wrote:
There is a microsoft application recovery tool that you can use. *Depending
on which version of Office you have installed it may be in a slightly
different location. *For Office 2003

Start - Microsoft Office - Microsoft Offfice Tools - Application Recovery..

Then select Excel Application



" wrote:
Dear All,


I am opening a *workbook and on opening I am disabling macros and
opening read-only. *I also have enableEvents set to false.


The problem I have is the file I am opening give an error message
saying the that these is unreadable content. *When I press ok I get
message saying lost vb content.


If I open the file outside vba (the excel) it asks me to enable macros
but there is no vba projects.


Is there any way to suppress this message in vba (and indeed all
messages)


Thanks in advance


Mac- Hide quoted text -


- Show quoted text -


Thanks for your response. I would just like my vba routine to detect
the message and not open it and move onto the next line of code.

joel

Opening workbook - get error message : unreadable content, los
 
The two ways of bypassing errors are

Application.DisplayAlerts = False
On Error Resume Next

But I don't think the error you are getting can be bypassed.

" wrote:

On 17 Oct, 14:37, Joel wrote:
There is a microsoft application recovery tool that you can use. Depending
on which version of Office you have installed it may be in a slightly
different location. For Office 2003

Start - Microsoft Office - Microsoft Offfice Tools - Application Recovery..

Then select Excel Application



" wrote:
Dear All,


I am opening a workbook and on opening I am disabling macros and
opening read-only. I also have enableEvents set to false.


The problem I have is the file I am opening give an error message
saying the that these is unreadable content. When I press ok I get
message saying lost vb content.


If I open the file outside vba (the excel) it asks me to enable macros
but there is no vba projects.


Is there any way to suppress this message in vba (and indeed all
messages)


Thanks in advance


Mac- Hide quoted text -


- Show quoted text -


Thanks for your response. I would just like my vba routine to detect
the message and not open it and move onto the next line of code.


[email protected]

Opening workbook - get error message : unreadable content, los
 
On 17 Oct, 15:28, Joel wrote:
The two ways of bypassing errors are

Application.DisplayAlerts = False
On Error Resume Next

But I don't think the error you are getting can be bypassed.



" wrote:
On 17 Oct, 14:37, Joel wrote:
There is a microsoft application recovery tool that you can use. *Depending
on which version of Office you have installed it may be in a slightly
different location. *For Office 2003


Start - Microsoft Office - Microsoft Offfice Tools - Application Recovery..


Then select Excel Application


" wrote:
Dear All,


I am opening a *workbook and on opening I am disabling macros and
opening read-only. *I also have enableEvents set to false.


The problem I have is the file I am opening give an error message
saying the that these is unreadable content. *When I press ok I get
message saying lost vb content.


If I open the file outside vba (the excel) it asks me to enable macros
but there is no vba projects.


Is there any way to suppress this message in vba (and indeed all
messages)


Thanks in advance


Mac- Hide quoted text -


- Show quoted text -


Thanks for your response. *I would just like my vba routine to detect
the message and not open it and move onto the next line of code.- Hide quoted text -


- Show quoted text -


No I don't think so etiher. Thanks for your time Joel.


All times are GMT +1. The time now is 03:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com