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: 15
Default Went from Office 2003 to 2007. Error 438 VB v.6.5.

This code was "fine" before I went to Excel 2007. Now I get 438 "Object
doesn't support this property or method".... It would be a lot of code to
reproduce here - and it's a different environment so I can't cut and paste -
so this is the gist of it. In particular I'm using VB to make charts (plot
from data in spreadsheets in the same workbook). The problems are around
making text boxes.

sub make_chart
....
apply_label
end sub
sub apply_label
activechart.shapes.addshape(msoShapeRectangle(300, 50,180,15).select '
Line 1
selection.characters.text = "This text" ' Line 2
end sub

I'll get the 438 on Line 2. But only if I've called apply_label from
make_chart. If I end when I get the 438 dialog box, and then just execute
apply_label, no error, no problem. Just baffling.

Is there some general hints on VB when going from 2003 to 2007? Did I not
set my environment up with the install of Excel 2007? Thanks in advance.
 
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
xls(2003) macro.. make error in 2007 office event ID 1000 HOONHEE Setting up and Configuration of Excel 1 December 11th 09 02:06 PM
Installing a Vista Office 2007 developed XLA to XP office 2003 machine Ed Sowell Excel Programming 4 February 27th 09 08:25 PM
Error on opening Excel 2007(.xlsx) on office 2003 machine. voidshyam Excel Programming 0 February 25th 08 09:51 AM
Office 2007 compatibility pack on Office 2003 (slow network file fox_mulder33 Setting up and Configuration of Excel 0 January 2nd 08 03:28 PM
Problem with Interop.Excel after uninstalling Office 2007 and installing Office 2003 Bill F[_2_] Excel Programming 2 May 2nd 07 02:52 PM


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