Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default useing a macro copied

Someone tried to respond to this link will not open. I tried google stumped
HELP
copy a macro over to run from vba in Excel works fine in word. When try from
excel will not go to printer
following is code this is only part. Have noticed that .destination all ways
goes to small not caps
Thanks to all

With ActiveDocument.MailMerge
'.Application = ActivePrinter
.destination = wdSendToPrinter error 5852 required object not
available
' Application = ActivePrinter
'ActiveSheet.PrintOut
.MailAsAttachment = False
.MailAddressFieldName = ""

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default useing a macro copied


That is the way the world is (at least in Microsoft's version).
Each office program uses it's own objects, properties, methods and constants
with very little overlap.
Code for Word will not work in Excel and vice versa.

Helpful advice on posting to newsgroups here... http://www.cpearson.com/excel/newposte.htm
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Curt"
wrote in message
Someone tried to respond to this link will not open. I tried google stumped
HELP
copy a macro over to run from vba in Excel works fine in word. When try from
excel will not go to printer
following is code this is only part. Have noticed that .destination all ways
goes to small not caps
Thanks to all

With ActiveDocument.MailMerge
'.Application = ActivePrinter
.destination = wdSendToPrinter error 5852 required object not available
' Application = ActivePrinter
'ActiveSheet.PrintOut
.MailAsAttachment = False
.MailAddressFieldName = ""
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 469
Default useing a macro copied

Thank you for responce. I was unaware that a macro was stored in the
document. There by I can build macro in document with no problem. Thank You
much for your responce to a novice. Stii learning


"Jim Cone" wrote:


That is the way the world is (at least in Microsoft's version).
Each office program uses it's own objects, properties, methods and constants
with very little overlap.
Code for Word will not work in Excel and vice versa.

Helpful advice on posting to newsgroups here... http://www.cpearson.com/excel/newposte.htm
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"Curt"
wrote in message
Someone tried to respond to this link will not open. I tried google stumped
HELP
copy a macro over to run from vba in Excel works fine in word. When try from
excel will not go to printer
following is code this is only part. Have noticed that .destination all ways
goes to small not caps
Thanks to all

With ActiveDocument.MailMerge
'.Application = ActivePrinter
.destination = wdSendToPrinter error 5852 required object not available
' Application = ActivePrinter
'ActiveSheet.PrintOut
.MailAsAttachment = False
.MailAddressFieldName = ""

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return while useing CONCATENATE Pierre Excel Discussion (Misc queries) 3 April 9th 09 03:59 PM
Copied formula produces unexpected copied results Robert New Users to Excel 1 December 5th 08 04:11 PM
Useing If to Delete a Range ytayta555 Excel Programming 10 March 5th 08 11:45 PM
Macro copied from ng returns a #VALUE! BEEJAY Excel Programming 5 November 1st 07 01:46 PM
useing arrows to move carman Excel Discussion (Misc queries) 1 December 20th 04 04:38 AM


All times are GMT +1. The time now is 09:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"