Question Locked

Excel 97 and Excel 2003

0 helpful
14 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have an XLS that was created back when Excel 97 was in its hay-day. It has tons of macros on the back end doing all kinds of formatting. I didnt author the macros.

My problem: The cells seem to be bigger now causing the data to pour over onto the next page.

Does anyone know why Excel 2003 would interpret the cell size differently than Excel 97?

Thank you.

14 replies

by thumbsup2

I think we're all confused about what it is you're trying to say. Maybe if you showed us a picture we could help.

You said "pour over onto the next page" and that's all handled by Page Setup. Even a different printer will make a difference. Do you mean the text flows from one cell into the cell next to it or the cell isn't wide/tall enough to display the text so you see ######'s? I'm confused about what it is you're seeing.

You also said that it has tons of macros "doing the formatting". Without seeing the macros themselves, it's impossible to tell you what it's doing.

I will say though, that some macros created in 2003 will break in 2007 because it handles them differently. So, it's entirely possible the same is true for ones created in 97 and moved over to 2003.

by retro77

I would be willing to email this and also a PDF of what we should be seeing and what we aren't seeing. Here is a picture:

Image Hosted by ImageShack.us

The crazy thing is, that not all of my users are seeing the same thing. I have a couple that can still print it out correctly and a few that this effect is having.

Here is an example of one of the many functions in one of the many macros:
Image Hosted by ImageShack.us

by thumbsup2

I can't find the specific reference right now (I'll keep looking), but there was a change in how macros are handled between Word 97/2000 and Word 2003. So, I'm assuming the Excel macros would be affected as well.

Look to see if all of the converters were installed on those machines that don't print the spreadsheet correctly. One can only assume those converters WERE installed on the machines that do print it right.

The specific article I was looking for (found it long time ago) mentions the differences in macros for 2003 needing specific worksheet references instead of just "activesheet" that used to work for Excel 97/2000.

I have to go back to work right now, so I'll look later tonight for you.

by tig2

Thumbs just gave you the converters line. I have a second line of defense in case all your macros don't translate.

Open the sheet with OO.o Calc. Do a "Save as" and choose Excel as your file type.

I have had a number of people able to recover older Office docs and spreadsheets using this dodge.

OpenOffice is available for the Windows platform.

Oh- and you can repair and edit macros with it too.

Have fun!

by retro77

Ok I went to my Office 2003 install to see if I could add any options...I have a complete install already. That does make me think about maybe some add on packs or something. I'll see what I can find on the M$ site.

I also installed Excel '97 and the macros work [no spilling over to another page]. I think your on to something there in the differnces in Macros from 97 to 2003. Maybe a macro command that I have is not even recognized in 2003.

This means I need a macro reference...also means I need to learn a lot more about these macros...damn I hate code!

Thank you for the help so far!

by tig2

We were able to take a macro intensive workbook directly to OpenOffice Calc with no re-write. give it a shot.

You are going to find the same problem between Office 2003 and Office 2007. Just like Office 97 broke Office 4.0 (I'm pretty sure that was the one...) This has been a known issue for some time.

Capitalize on OO.o to help you with your docs and spreadsheets to convert them.

by thumbsup2

I can't find the particular article I read now. But, based on that snip of code you showed us, I don't see anything that isn't almost identical in the 2003 Visual Basic help.

The one thing I did see though, was that the macro is set to use size A3 paper with minimal margins. Is that the correct paper size? Do the users where the macros don't work right use a different printer than the ones where the macros do work?

Just shooting in the wind here.... ?:|

by retro77

Size: yes its correct. They print in both 11x17 and 8.5x11.

As far as the printer, yes the same printer, they sit in the same area. I have also tried to send it to a PDF printer, same results.

Also the drivers are the same, they pull them down from the print server.

by thumbsup2

Here's a thought or three. I'm not sure if this would do it, but it certainly seems possible and is worth taking a look at.

The A3 paper size, used in the snip of code you showed us, is a European reference to paper which is ROUGHLY the size of 11 x 17, but not quite. The code is printing in landscape and telling the printer to format printing as if it has paper installed that is 11.7 x 16.5 (A3 size). If indeed you have 11 x 17 paper in the printer, there would be an overflow of printing at the bottom of the page equivelent to .7 of an inch, thus causing a flow of text over to another sheet of paper (printers are dumb ya know). The same would happen if A4 was used in the code and you put 8-1/2 x 11 paper in the printer, except it would happen on the right margin, not the bottom in landscape. The A4 size is actually 8.3 x 11.7, so the document printing would underflow by .2 of an inch at the bottom (in landscape), but would overflow by .7 in on the right margin. All of the margins in those print settings are extremely tight, so there's no room for any "slop over". ;)

Now, let's take this one step further and see if we can explain why it works for some people and not for others. What if.....

What if the users who do NOT have trouble printing with this macro have gone in and set their default printer settings on that particular printer to something slightly different than the people who DO have trouble printing? What if one group or the other has left their default print settings to "auto" and the other group has set their default print settings to, say, tray 2 always contains 8-1/2 x 11 and tray 3 always contains 11 x 17, thus overriding any programming settings?

These are all just thoughts running around in my head, but it's certainly worth a shot at looking into the possibility of this little "ditty" causing the problem.

So, when you get a chance, I would change that code to get rid of the European paper size references if it is indeed being used here in the States, as your location indicates. Here's some of the codes that CAN be used instead of [b]xlPaperA3[/b]:

[b]xlPaper11x17[/b] (for 11 in. x 17 in.)
[b]xlPaperTabloid[/b] (for 11 in. x 17 in.)
[b]xlPaperLedger[/b] (for 17 in. x 11 in.)
[b]xlPaperLegal[/b] (for 8-1/2 in. x 14 in.)
[b]xlPaperLetter[/b] (for 8-1/2 in. x 11 in.)
[b]xlPaperNote[/b] (for 8-1/2 in. x 11 in.)

Anyway, hope this helps. Let us know what you find. :)

by retro77

Well I did that, it gave me an error on some code it didnt recognize. Only got this once though. I went back to try and get it to show you guys, but it didnt throw the error again.

Also, when I open it in Excel, it turns on Zero values, I gotta find a way to shut that off in a macro.

Another weird thing is some of the borders around cells are gone. Not a big deal.

Thanks for your help guys!!

This discussion is closed to new replies.