If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > "Error 1004" Application-defined or object defined error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-28-04, 14:16
Marce Marce is offline
Registered User
 
Join Date: Mar 2004
Posts: 18
Question "Error 1004" Application-defined or object defined error

I keep getting the run time error 1004, but the problem is that the error appears after a finished inserting data in excel (code line: if isnull(rrec!campo) then ...), so I don't know why.
the programs runs well until that line, but the error is related with excel?

Basically, the code is:
Dim AppExcel as variant
Set AppExcel = CreateObject("Excel.application")
Set vXLS = AppExcel.Workbooks.Open(oIcallerForm.IniTemplateDi rectory & "\template5.xls")
vXLS.Sheets("Hoja3").Select
with vXLS
(...)

.Cells(pE, 9).Formula = Trim(rRec!expo_prod_nombre)
.Cells(pE, 10).Formula = "3.- Pedido"
slog = "mensaje" (executes ok!)

if isnull(rrec!campo) then .... (Error 1004)

Why should I do? Thanks
Marce
Reply With Quote
  #2 (permalink)  
Old 07-14-04, 19:08
ambreesh ambreesh is offline
Registered User
 
Join Date: Jul 2004
Posts: 1
null error

if you donot enter any data into the excel sheet this error normally comes.
if you have any further quesitions regarding excel please contact me at ambreesh@gmail.com
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On