Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excelfile send via LotusNotus using VBA is not opening

Status
Not open for further replies.

XB9R

Programmer
Dec 4, 2006
20
BE
Hi all,

I'm using some code to send an Email with an attachement. We are using Lotus Notes 7 and Excel 2003.

the code:
Code:
Call Body.EMBEDOBJECT(1454, "", "C:\MyFile.xls", "")


It sends fine, only the file can't be opened by the receiver. Only TXT-files can be opened. Any other extension won't open (at least not in a readable format)

Any ideas?


Dave
 
Access not involved. You need to ask that question here:
forum707

Well, I'm assuming here that the code is within Excel, not Notes. If within Notes, then you need to find another forum for dealing with their code, as I don't believe it's the same:
forum73
 
Thx for pointing me to 2 valuable forums - can't remember what made me post in this forum...

Well actually the code is in Access (VBA) We're trying to send a Lotus Notes mail with an excel file attached to it.
The code works fine when we attach a text file. Attaching any file with a different extension than .TXT results in a mail with attachment. The attachment can be opened, but is not in the expected format - it is unreadable ...





Dave
 
Hmm, if the code is working other than the readable format, then perhaps there's another issue at hand. I've never used Lotus mail, so I can't really guess at that. If it were me, I'd first be looking up something like:
Excel Data Corruption Lotus Mail

However, be aware, it seems that search brings mostly results such as "Buy My Data Recovery Software" from multiple vendors. You may have to go a couple pages deep to get good results on that...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top