Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default XL 2007 records print command as XL4 macro

In Excel 2007, I turned on the macro recorder and printed a sheet to MODI to
get a tif of my worksheet. When I looked at the recorded code I got:

ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)"

Which is fine as long as it works, but I found it strange to get an old XL4
macro from 2007..........bug?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default XL 2007 records print command as XL4 macro

MS defines a bug as something that doesn't work as designed. I'm sure this
code is produced because MS designed it that way.

Back when VBA was introduced (Excel 5) it could not support every operation
that Excel 4 macros could. And it still can't. Thus the ExecuteExcel4Macro
method. Whether Excel 2007 VBA can do what you recorded or not I imagine MS
didn't allocate resources to revisit what the macro recorder produces, as
long as it works. If Excel 4 macro support is removed in Excel 14, as is
rumored, it probably will (I pray).

--
Jim
"XP" wrote in message
...
| In Excel 2007, I turned on the macro recorder and printed a sheet to MODI
to
| get a tif of my worksheet. When I looked at the recorded code I got:
|
| ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)"
|
| Which is fine as long as it works, but I found it strange to get an old
XL4
| macro from 2007..........bug?
|
|


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
Command Button - Macro to print to pdf, then send pdf to email. Tdahlman Excel Discussion (Misc queries) 2 May 1st 23 11:44 AM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
macro assigned to print command button jatman Excel Programming 3 September 24th 06 08:26 AM
run macro after print command. shital shah Excel Programming 3 January 13th 05 10:00 AM
Sending Print command in a macro janet Excel Programming 2 August 29th 03 03:58 PM


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