LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default Differente .xls files generated when VBE window closed vs open

While debugging some generated spreadsheets that are picked up by a third
party system, we found that the actual byte code of xls workbooks generated
in vba in Excel differ depending on wether or not the VBE window is open or
closed.

Has anyone run across this? The files generated when the VBE window is open
are always about 8k larger than when the VBE window is closed. Looking at
the files with a hex editor, the files are completely different.

The problem is that for some reason the 3rd party system will not handle the
file correctly unless it gets the format that is generated when the VBE
window is open. This causes us to open the VBE window programatically before
saving the file in code.

When opening both files separately in Excel all modules, properties etc are
identical.

File is being saved with

Application.VBE.MainWindow.Visible = True ( or False)

xlNewBook.SaveAs FileName:=strOutputPath & "_" & strWorkBookName, _
FileFormat:=-4143, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False, TextCodePage:=1100

Thanks in advance,
Mark
 
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
2 excel files open in same window Nese Excel Discussion (Misc queries) 2 January 21st 09 10:06 PM
how do i set Excel 2003 files to open in own window Becky Excel Discussion (Misc queries) 2 January 31st 07 04:54 PM
How can I open from Web Excel Files in a separate Window? KUR Excel Discussion (Misc queries) 0 March 27th 06 09:06 PM
Multiple files open in same window Scott Reading Excel Discussion (Misc queries) 5 March 24th 06 12:39 AM
How do I open excel files in a new window Michael Excel Discussion (Misc queries) 1 September 28th 05 05:07 PM


All times are GMT +1. The time now is 01:14 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"