Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro errors when upgrading to windows 7

I have just upgraded to Windows 7 running excel 2007.
Previously I was running XP, again with excel 2007.

The publishing Macro that worked with no problems on XP is now falling
over on Windows 7.

The error that I am getting is:
“Run-time error ‘1004’: The specified dimension is not valid for the
current chart type.”

When trying to execute the following VBA:

============================================
With ActiveWorkbook.PublishObjects.Add(xlSourceRange,
myfilename, mysheet, mypublish, xlHtmlStatic, mysheet, "")
.publish (True)
.AutoRepublish = False
End With
============================================

'mysheet' is a normal worksheet name
'mypublish' is a defined range name which contains one or more charts

Has anyone any idea wheat is going on or how I can fix it.
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
excel.exe has generated errors and will be shutdown by windows jcook Excel Discussion (Misc queries) 0 April 22nd 08 02:20 PM
Macro Errors [email protected] Excel Programming 1 May 26th 05 12:28 PM
Errors Opening Excel 2000 files in Windows 98 previously saved in Paul Fraser Excel Discussion (Misc queries) 1 May 9th 05 03:30 PM
EXCEL.exe has created errors and will be closed by Windows. help_wanted[_5_] Excel Programming 2 April 6th 04 09:11 PM
Altered formatting after upgrading Windows 98 to 2000 Lee Excel Programming 1 October 11th 03 01:56 PM


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