Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Components
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB Components Issues specific to components in VB.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Components section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 19th, 2004, 12:54 AM
Registered User
 
Join Date: Apr 2004
Location: Bangalore, Karnataka, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Run-time error '1004':

Hi,
    I have created an excel object variable(objExcel) using CreateObject("Excel.Application"). I tried to published an excel file using this object which is having a pivot table, to a .htm file. When I am trying to execute the statment
objExcel.Application.ActiveWorkbook.PublishObjects .Add(xlSourcePivotTable, htmFile, "CI", "CI", xlHtmlList).Publish , it throws an error

Run-time error '1004':
Application-defined or object-defined error.

However, when I gave excel object reference and declared the object variable then it worked fine.

Can anybody provide solution for this problem.

Thanks & Regards,
Gogoi

Reply With Quote
  #2 (permalink)  
Old July 18th, 2004, 11:02 AM
Registered User
 
Join Date: Jul 2004
Location: Dubai, , United Arab Emirates.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Be sure that you load the Microsoft Excel Worksheet insertable object.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
run-time error(s) Chacko C++ Programming 0 March 4th, 2007 02:28 PM
Run time error 1004 Ken Matthews Excel VBA 1 March 2nd, 2007 06:30 AM
Run-time error '1004' Document not saved Tucky Excel VBA 0 October 28th, 2004 12:04 AM



All times are GMT -4. The time now is 10:40 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.