PC Review


Reply
Thread Tools Rate Thread

copy a cell value to an open outlook template

 
 
Tracey
Guest
Posts: n/a
 
      19th Aug 2009
Hi all,

I have an existing code that does a whole bunch of other stuff, then goes to
a specific cell and copies that cell's value and then opens an Outlook
Template .oft. I would like to know if there is some code that will then
paste that held value into the body of the open .oft document. I can just do
a CTRL-V to paste it manually but would like this whole process to automate
if possible.

Sheets("Sheet1").Select
Range("A2").Select
Selection.Copy

target = """G:\my file pathway\Check.oft"""
Shell "cmd /cStart """" " & target

I want to put the paste command here but am at a loss as to how to proceed.

Any help would be really appreciated. I've only recently started using
these discussion groups and I've learned more in a couple of weeks than in
the past few years... Thanks!!

Tracey

 
Reply With Quote
 
 
 
 
Tracey
Guest
Posts: n/a
 
      20th Aug 2009
Thks Alan, but unfortunately I cannot get to Ron's site as I have limited
internet access at work. I don't really want to have go home and pick
sections of code out and then wait to apply them the next morning and hope
they work.

I was hoping that somebody may be able to help me with the code directly.
Guess I'll just have muddle to and fro between work and home.

Tracey


"Alan McQuaid via OfficeKB.com" wrote:

> Hi Tracey,
>
> Check out the section on email on Ron de Bruin's site at
> http://www.rondebruin.nl/sendmail.htm
>
> Alan
>
> --
> Message posted via http://www.officekb.com
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to Open another template and use the Cell in the new sheet jpkloske Microsoft Excel Misc 0 21st Dec 2009 01:38 PM
Copy the value to the next open cell when the original cell changes gaburcham@gmail.com Microsoft Excel Programming 1 23rd Jul 2008 08:34 PM
copy Excel Template and Open to view LeftyLeo via AccessMonster.com Microsoft Access Form Coding 7 23rd Jun 2007 12:05 AM
Outlook 2003 Copy & Paste Strangeness - Destination Must be Open Prior to Copy antony01@theUpwards.net Microsoft Outlook 0 14th Mar 2007 05:34 AM
Open a template, copy 3 worksheets w ranges and save as workbook gimme_this_gimme_that@yahoo.com Microsoft Excel Programming 0 3rd Feb 2006 05:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:17 AM.