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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

question about ranges, PublishObjects.Add, and Outlook emails

Status
Not open for further replies.

marduk813

Programmer
Jul 18, 2002
89
US
I have a situation where I need to use multiple ranges in the PublishObjects.Add method. My range object comes out to be "A3:A15, T3:AB15". This seems to work fine by itself, but once I try to use it in the PublishObjects.Add method, it errors out with an application- or object-defined error. A simple range of "A3:A15" works fine though.

I'm trying to copy two ranges to an HTML file to then be copied to the body of an Outlook email, such as what was mentioned here:

[URL unfurl="true"]http://www.tek-tips.com/viewthread.cfm?qid=1167241[/url]

Any suggestions on possibly a better way to do this?
 
As it turns out, I found a workaround. Rather than trying to copy both ranges to the HTML file, I copied them to another part of the worksheet first so that they were right next to each other, then copied that new range to the HTML file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top