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: 65
Default manipulating drawing objects in MS Office 2007

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(msoTextOrientationHo rizontal, 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 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)

Art

 
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
Excel 2007: Selecting multiple objects by drawing a selection box panalysis Excel Discussion (Misc queries) 4 April 2nd 23 07:41 PM
Excel 2007 does not record macro when manipulating objects Mehdi Excel Programming 4 November 5th 09 12:46 AM
Drawing objects in Excel 2007 cf1uk Excel Discussion (Misc queries) 1 November 4th 09 02:41 PM
Office 2007 Drawing Toolbar Irv Excel Discussion (Misc queries) 10 July 27th 08 10:37 PM
Excel 2007 macros with drawing objects DMChesser Excel Discussion (Misc queries) 1 October 8th 07 09:05 PM


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