Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-05-2018, 06:02 AM
RMerckling RMerckling is offline Is this possible to create? Windows 7 64bit Is this possible to create? Office 2010 32bit
Novice
Is this possible to create?
 
Join Date: Jan 2018
Posts: 29
RMerckling is on a distinguished road
Default

Paul,

Template: "a preset format for a document or file, used so that the format does not have to be recreated each time it is used." Seems like I'm using templates.



"Excel Doc": Excel "Workbook", my apologies.

"Source": "Source" is simply a label and I think you're being a bit overly critical.

With that being said, I want to clarify that I do appreciate your feedback and remind you that I am no expert in this field which could be why my terminology and/or explanation is off. I would love to attach the files, but they're not on hand at the moment.

Thanks, Paul,
Rich
Reply With Quote
  #2  
Old 04-18-2018, 09:52 AM
RMerckling RMerckling is offline Is this possible to create? Windows 7 64bit Is this possible to create? Office 2010 32bit
Novice
Is this possible to create?
 
Join Date: Jan 2018
Posts: 29
RMerckling is on a distinguished road
Default

Paul,

I've managed to scrape together code that copies/renames the Plan Word Document and pastes within the same folder as the Excel Workbook. Now I just need to figure out how to run a Mail Merge on the newly created copy of Plan Word Document.

Code:
Sub CopyandRename()
    Dim str1 As String
    Dim str2 As String
    str1 = "Q:\IC\New Structure\IC Toolkit\Templates\01 Plan Doc Template\16 Source\IC Plan Doc Template v1.0.docx"
    str2 = Application.ActiveWorkbook.Path & "\" & Range("A1").Value & ".docx"
    
    Call FileCopy(str1, str2)
    
'Opens New Plan Doc Template
    Set appWd = CreateObject("Word.Application")
    appWd.Visible = True

    appWd.Documents.Open Filename:=Application.ActiveWorkbook.Path & "\" & Worksheets("Form").Range("A1").Value & ".docx"

End Sub
All data is contained in "Data" worksheet within the Excel Workbook, and only one single Mail Merge needs to be ran using DDE, preferably.

Again, your assistance is greatly appreciated,
Rich
Reply With Quote
Reply

Tags
excel vba, mail merge, word vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create PDF Anitha Word 5 02-01-2018 11:13 PM
Is this possible to create? How to create this? Jil.10 Word 4 05-09-2016 11:56 AM
how to create a special template to create a clear lay out for plain text hex Word 1 04-01-2016 09:58 AM
Is this possible to create? Mail merge from excel - need to create sheets and create a table bluenosebex Mail Merge 5 08-02-2015 05:34 PM
Is this possible to create? create a datafile acki Excel 1 01-26-2012 07:49 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft