I finally found the solution!!!
it's VERY tricky, especially for someone like me who is relatively new to VBA programming... The problem was that the embedded object had no name, so when I ran the macro I got "1004" error msg. What I did was the following:
Dim XL As Excel.Application...
I AM using a "write".. I put an "A" in the file's F-spec as you said, but it seems that I'm not referring to the right record name, and I forgot how to look for the record name (I know, it must be VERY simple, but I'm not quite used to AS400 interface yet, since the first one...
I am totally new at AS400 & RPG programming, and I wanted to make a prog that takes a file from PC and transfer it to AS400 ... I had help for this first part and it works perfectly, but now I want to update the file I get from the PC it and send it back to the PC. I used "CPYTOSTMF"...
In fact, my (simplified) code is:
Public Sub Tarif1()
Application.DisplayAlerts = False
ChDir "G:\"
On Error Resume Next
ActiveWorkbook.Save
On Error GoTo 0
If Err.Number = 91 Then
'=> error
Else
Filename = ActiveWorkbook.FullName
If...
I use a macro to automatically update and save an Excel workbook in *.csv type. It works perfectly for any document opened in Excel, but when I use it on an inserted object in Word, it fails...
I have a 1004 error message each time I run my macro on an Excel Worksheet object inserted in Word...
I use a macro to automatically update and save an Excel workbook in *.csv type. It works perfectly for any document opened in Excel, but when I use it on an inserted object in Word, it fails...
I have a 1004 error message each time I run my macro on an Excel Worksheet object inserted in Word...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.