PC Review


Reply
Thread Tools Rate Thread

BIFF / Office 2007 Question

 
 
TC
Guest
Posts: n/a
 
      4th Jul 2008

Hey All,

Since the new Excel file formats are different, I was wondering how folks
are dealing with legacy VBA code that uses Get and Seek functions to work
with things. I ask because I'm soon going to be facing these questions ;-)

Any advice / recommendations would be greatly appreciated.

Thanks!


 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      4th Jul 2008
In what way what do you consider (FileSystem) Get & Seek functions are
"legacy" and might not work with Office 2007, or are there some other
similarly named functions you are concerned with.

Regards,
Peter T


"TC" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Hey All,
>
> Since the new Excel file formats are different, I was wondering how folks
> are dealing with legacy VBA code that uses Get and Seek functions to work
> with things. I ask because I'm soon going to be facing these questions

;-)
>
> Any advice / recommendations would be greatly appreciated.
>
> Thanks!
>
>



 
Reply With Quote
 
Jim Rech
Guest
Posts: n/a
 
      4th Jul 2008
For the most part I'd say the file format change should be transparent to
users and not something to worry about. It seems that you've assumed that
some macros that worked in earlier Excels will be broken in 2007. Some have
been but for the most part MS has tried and succeeded in not making that so.
It may not always seem that way but they want people to upgrade and try not
to create reasons for them not to. So I think the presumption should be
that things will work unless shown otherwise.

--
Jim
"TC" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Hey All,
>
> Since the new Excel file formats are different, I was wondering how folks
> are dealing with legacy VBA code that uses Get and Seek functions to work
> with things. I ask because I'm soon going to be facing these questions
> ;-)
>
> Any advice / recommendations would be greatly appreciated.
>
> Thanks!
>



 
Reply With Quote
 
TC
Guest
Posts: n/a
 
      4th Jul 2008

Hey Jim,

OK. Let's assume we're using Excel 2003 for starters and we have the
following code:

Dim abytFile(1) As Byte

Get m_hFile, , abytFile

If I use the above code with an Excel created in XL 2003 and earlier, the
BOF markers are 9 for lower and 8 for upper byte and the EOF markers are 10
for lower byte and 0 for upper byte. If run against an .xlsx file, it
fails.

Thus, the question is, if there is VBA code that loops through records in a
workbook via Get / Seek, what are the distinguishing markers for these later
workbooks?

Thanks



"Jim Rech" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> For the most part I'd say the file format change should be transparent to
> users and not something to worry about. It seems that you've assumed that
> some macros that worked in earlier Excels will be broken in 2007. Some
> have been but for the most part MS has tried and succeeded in not making
> that so. It may not always seem that way but they want people to upgrade
> and try not to create reasons for them not to. So I think the presumption
> should be that things will work unless shown otherwise.
>
> --
> Jim
> "TC" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>
>> Hey All,
>>
>> Since the new Excel file formats are different, I was wondering how folks
>> are dealing with legacy VBA code that uses Get and Seek functions to work
>> with things. I ask because I'm soon going to be facing these questions
>> ;-)
>>
>> Any advice / recommendations would be greatly appreciated.
>>
>> Thanks!
>>

>
>



 
Reply With Quote
 
Jim Rech
Guest
Posts: n/a
 
      5th Jul 2008
I did not apprecate that you were reading Excel files at the byte level,
something that no Excel methods support (Get being VB). I had Excel methods
in mind in saying that we can assume MS has made whatever changes are
necessary for them to continue to work in Excel 2007 despite the file format
change.

The plot thickens in the new version because besides the XML in ZIP files
that are XLSX and XLSM files there is the new binary in ZIP format XLSB and,
of course, the old binary format is still supported.

Reading Excel files directly is something very few people have done or need
to do but your task may be easier because the new formats are 'open' and so
publically documented. I would think your first step would be to unzip the
new files...

--
Jim
"TC" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Hey Jim,
>
> OK. Let's assume we're using Excel 2003 for starters and we have the
> following code:
>
> Dim abytFile(1) As Byte
>
> Get m_hFile, , abytFile
>
> If I use the above code with an Excel created in XL 2003 and earlier, the
> BOF markers are 9 for lower and 8 for upper byte and the EOF markers are
> 10 for lower byte and 0 for upper byte. If run against an .xlsx file, it
> fails.
>
> Thus, the question is, if there is VBA code that loops through records in
> a workbook via Get / Seek, what are the distinguishing markers for these
> later workbooks?
>
> Thanks
>
>
>
> "Jim Rech" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> For the most part I'd say the file format change should be transparent to
>> users and not something to worry about. It seems that you've assumed
>> that some macros that worked in earlier Excels will be broken in 2007.
>> Some have been but for the most part MS has tried and succeeded in not
>> making that so. It may not always seem that way but they want people to
>> upgrade and try not to create reasons for them not to. So I think the
>> presumption should be that things will work unless shown otherwise.
>>
>> --
>> Jim
>> "TC" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>
>>> Hey All,
>>>
>>> Since the new Excel file formats are different, I was wondering how
>>> folks are dealing with legacy VBA code that uses Get and Seek functions
>>> to work with things. I ask because I'm soon going to be facing these
>>> questions ;-)
>>>
>>> Any advice / recommendations would be greatly appreciated.
>>>
>>> Thanks!
>>>

>>
>>

>
>



 
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
Install question of Outlook 2007 with Office H&S 2007 already inst Truc88 Microsoft Outlook Installation 1 24th Sep 2009 01:35 PM
one more question BIFF gotta know Microsoft Excel Worksheet Functions 1 22nd Dec 2006 07:30 PM
OFFICE 2007 ENTERPRISE UG VL (OFFICE-SOLUTION), PROJECT 2007, PUBLISHER 2007, BRITANNICA 2007, other 2006-11-26 new programs CDs 5200 - 5227, and new games CDs 1945 - 1959 kashumoto_tokugawa Windows XP General 0 26th Nov 2006 12:09 PM
Office 2007 question =?Utf-8?B?Ym5vcnRoYW0=?= Windows Vista Mail 4 15th Aug 2006 10:01 AM
Question about Office 2007 Tony Windows Vista General Discussion 12 28th May 2006 10:33 PM


Features
 

Advertising
 

Newsgroups
 


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