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

Excel and Word working together from Excel macro?

Status
Not open for further replies.

jwkolker

Programmer
Jan 9, 2003
68
US
Maybe some one can help me with this - I need a macro that will:
[ol][li]Select Range[/li]
[li]Copy all cells and chart in the range[/li]
[li]Open an existing word document with rtf extension[/li]
[li]Paste the selection that was copied[/li]
[li]Close All Files xls and rft[/li][/ol]
So far I have 1 and 2 working with this code

=============================================
Code:
 ChDir "G:\_Development_Reporting\Working\MasterFiles"
    Workbooks.Open Filename:= _
        "G:\_Development_Reporting\Working\MasterFiles\giltreport-chart-final.csv"
    Range("A1:D37").Select
    Selection.Copy
    ActiveWindow.Close
    Workbooks.Open Filename:= _
        "G:\_Development_Reporting\Working\MasterFiles\weekly_charting_working.xls"
    Sheets("Feed").Select
    Range("A1").Select
    ActiveSheet.Paste
    Sheets("WeekvAverages").Select
    Application.Goto Reference:="printchart"
    Selection.Copy
===============================================

Any help would be greatly appreciated.

Regards,

John Kolker
John Kolker
Programmer
jwkolker@comcast.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top