Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default About Promt Window

Hi!

I have file .xlsx with password. If I rename file to .xls and try to open
this file, Excel 2007 ask me password and then it is generated prompt Window
with message like "Actual format of document is different from format given
by extension. Open this file?" So, can I prevent this prompt window? May be I
have to change some parameters in call method Workbooks.Open?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default About Promt Window

Not sure why you want to do this?

The xlsx and xls formats are very different. If you want an older xls
version then save the file as Excel 97-2003 format from within Excel. This
creates a file with the xls extension.

--

Regards,
Nigel




"boltnia" wrote in message
...
Hi!

I have file .xlsx with password. If I rename file to .xls and try to open
this file, Excel 2007 ask me password and then it is generated prompt
Window
with message like "Actual format of document is different from format
given
by extension. Open this file?" So, can I prevent this prompt window? May
be I
have to change some parameters in call method Workbooks.Open?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default About Promt Window

Thanks. But I didnt get answer on my question. Can I prevent prompt window in
discribing earlier situation? If yes, how?

Thanks :)


"Nigel" wrote:

Not sure why you want to do this?

The xlsx and xls formats are very different. If you want an older xls
version then save the file as Excel 97-2003 format from within Excel. This
creates a file with the xls extension.

--

Regards,
Nigel




"boltnia" wrote in message
...
Hi!

I have file .xlsx with password. If I rename file to .xls and try to open
this file, Excel 2007 ask me password and then it is generated prompt
Window
with message like "Actual format of document is different from format
given
by extension. Open this file?" So, can I prevent this prompt window? May
be I
have to change some parameters in call method Workbooks.Open?

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default About Promt Window

Try

Workbooks.Open Filename:="C:\Book5.xls", _
Password:="abc", writerespassword:="abc"

I would STRONGLY recommend against changing file extensions. It won't make
the 2007 file openable in 2003, regardless of the extension.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"boltnia" wrote in message
...
Thanks. But I didnt get answer on my question. Can I prevent prompt window
in
discribing earlier situation? If yes, how?

Thanks :)


"Nigel" wrote:

Not sure why you want to do this?

The xlsx and xls formats are very different. If you want an older xls
version then save the file as Excel 97-2003 format from within Excel.
This
creates a file with the xls extension.

--

Regards,
Nigel




"boltnia" wrote in message
...
Hi!

I have file .xlsx with password. If I rename file to .xls and try to
open
this file, Excel 2007 ask me password and then it is generated prompt
Window
with message like "Actual format of document is different from format
given
by extension. Open this file?" So, can I prevent this prompt window?
May
be I
have to change some parameters in call method Workbooks.Open?

Thanks



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default About Promt Window

Hi!

So, Chip Pearson, now you are faced in my problem. I have a file .xls and I
do not know, is there Excel 2007 of 2003 format, because file with password
(file is encrypted). And I could not prevent prompt window, that informs me
about different formats. Who can help me to resolve this problem?
Thanks :))))

"Chip Pearson" wrote:

Try

Workbooks.Open Filename:="C:\Book5.xls", _
Password:="abc", writerespassword:="abc"

I would STRONGLY recommend against changing file extensions. It won't make
the 2007 file openable in 2003, regardless of the extension.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)

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
Promt When Closing TheRook Excel Programming 2 September 6th 06 05:47 PM
Input Box Promt Aziz Ahmedabadwala[_2_] Excel Programming 5 June 5th 06 06:36 PM
Promt when closing Excel Carit Excel Discussion (Misc queries) 0 March 22nd 06 07:55 AM
ms query promt in vba tina Excel Programming 0 March 21st 06 03:40 PM
Can we Set Default value for the Excel promt(Y/N) SpiderSwamy Excel Programming 2 March 16th 06 05:32 PM


All times are GMT +1. The time now is 10:26 AM.

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"