PC Review


Reply
Thread Tools Rate Thread

manipulating drawing objects in MS Office 2007

 
 
c1802362
Guest
Posts: n/a
 
      5th May 2012
My company just upgraded my computer from Windows XP/MS Office 2003 to Windows 7/MS Office 2007.

As I revalidate all the VBA code I've written in Excel, Powerpoint, and Word, I'm finding some disturbing issues. Can anyone give me some guidance the following issues:

1) in Excel 2007, any routines I have that manipulate drawing objects (creating, modifying, moving around) still work, but when I try to record (usingthe macro recorder) any actions involving drawing objects, the system won't capture them. So, for example, in Excel 2003, if I create a text box and format it with the macro recorder turned on, the system will write the following to a new subroutine ("Macro1"):

Sub Macro1
ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, 100, 100, 30, 50).Select
Selection.Characters.Text = "demo"
With Selection.Characters(Start:=1, Length:=5).Font
.Name = "Arial"
.FontStyle = "Regular"
.Size = 10
.ColorIndex = xlAutomatic
End With
End Sub

Nothing happens in Excel 2007

Similarly, if I turn the recorder on again and select the text box and moveit around the sheet, nothing is recorded in the subroutine. However, if I click in a cell, the recorder wakes up and tells me I've selected a range object [Range("A1").Select]

2) Powerpoint 2007 is even worse. There is no macro recorder anymore...

The issue is that creating drawing objects is not an everyday occurrence, so its easier to have the system capture the basic code than trying to type the syntax from memory.

Does anyone know if Excel 2010 puts the VBA functionality lost from 2003 to2007 back in? (The reason I ask is my company's IT department has told me that due to problems with 2007 they'll be upgrading me again in about 6 months to 2010)

Art

 
Reply With Quote
 
 
 
 
Martin Brown
Guest
Posts: n/a
 
      5th May 2012
On 05/05/2012 04:28, c1802362 wrote:
> My company just upgraded my computer from Windows XP/MS Office 2003 to Windows 7/MS Office 2007.
>
> As I revalidate all the VBA code I've written in Excel, Powerpoint, and Word, I'm finding some disturbing issues. Can anyone give me some guidance the following issues:
>
> 1) in Excel 2007, any routines I have that manipulate drawing objects (creating, modifying, moving around) still work, but when I try to record (using the macro recorder) any actions involving drawing objects, the system won't capture them. So, for example, in Excel 2003, if I create a text box and format it with the macro recorder turned on, the system will write the following to a new subroutine ("Macro1"):
>
> Sub Macro1
> ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, 100, 100, 30, 50).Select
> Selection.Characters.Text = "demo"
> With Selection.Characters(Start:=1, Length:=5).Font
> .Name = "Arial"
> .FontStyle = "Regular"
> .Size = 10
> .ColorIndex = xlAutomatic
> End With
> End Sub
>
> Nothing happens in Excel 2007


Yes. It is fantastic isn't it! The Macro recorder in Office 2007 is
hopelessly borked and broken. FUBAR doesn't begin to describe it.

You will also find if you do any extensive manipulation of graphics
objects that a random subste of them have changed from (X0, Y0, X1-X0,
Y1-Y0) notation to (X0, Y0, X1, Y1) or vice-versa. And the help hasn't
been updated so you just have to watch for things drawing to crazy
places and fix accordingly during the migration.

Given that you have lasted so long without having to fight this
particular dragon why are you doing it now when 2010 is out?

Seems like a particularly masochistic thing to do when at least some of
the weird faults of 2007 are put right in 2010 (and require additional
remedial action to undo the effects of 2007 workarounds).
>
> Similarly, if I turn the recorder on again and select the text box and move it around the sheet, nothing is recorded in the subroutine. However, if I click in a cell, the recorder wakes up and tells me I've selected a range object [Range("A1").Select]
>
> 2) Powerpoint 2007 is even worse. There is no macro recorder anymore...
>
> The issue is that creating drawing objects is not an everyday occurrence, so its easier to have the system capture the basic code than trying to type the syntax from memory.
>
> Does anyone know if Excel 2010 puts the VBA functionality lost from 2003 to 2007 back in? (The reason I ask is my company's IT department has told me that due to problems with 2007 they'll be upgrading me again in about 6 months to 2010)


I suggest you tell them to skip XL2007 entirely.
It is FUBAR and they should demand their money back.

--
Regards,
Martin Brown
 
Reply With Quote
 
 
 
 
c1802362
Guest
Posts: n/a
 
      6th May 2012
On Saturday, May 5, 2012 4:23:35 AM UTC-4, Martin Brown wrote:

> Yes. It is fantastic isn't it! The Macro recorder in Office 2007 is
> hopelessly borked and broken. FUBAR doesn't begin to describe it.
>

[snip]
>
> I suggest you tell them to skip XL2007 entirely.
> It is FUBAR and they should demand their money back.
>
> --
> Regards,
> Martin Brown


Thanks for the confirmation - I'll see if our IT group can expedite my upgrade to 2010

Art
 
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
Excel 2007 does not record macro when manipulating objects Mehdi Microsoft Excel Programming 4 5th Nov 2009 01:46 AM
Manipulating sound clips in Office 2003/2007 under XP vs Vista =?Utf-8?B?c2FwcGFyaQ==?= Microsoft Word Document Management 0 20th Sep 2007 05:44 AM
No drawing canvas so I can still use the objects for drawing! =?Utf-8?B?WGFuZGVyYWxleDc=?= Microsoft Access Form Coding 1 12th Jan 2006 10:46 PM
Objects, objects, so many objects! ;-) thechaosengine Microsoft Dot NET 11 18th Dec 2004 01:35 PM
Objects, objects, so many objects! ;-) thechaosengine Microsoft C# .NET 10 16th Dec 2004 05:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:00 PM.