Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Mail Merge using VB
Name: olidav911 Date: October 13, 2006 at 06:58:06 Pacific OS: N/A CPU/Ram: N/A Product: N/A
Comment:
I am working on making a mail merge. It basically picks data off excel as you expect it to do but I need to create a macro that'll open up every row in a new document. The coding I have done so far is:-
Name: pingy Date: October 28, 2006 at 09:30:41 Pacific
Reply:
As I remeber correctly, the property UsedRange (i.e. Activesheet.UsedRange) contains the range of the last cell. From this you can extract the last row.
You could allso loop until you find and empty row en use "Exit Do":
Do While True If Emptyrow Then Exit Do End If Do your stuff Loop
You have to fill in "EmptyRow" yourself because I don't know what your Excelsheet looks like.
On the other hand, can't you get it done from Word? Create a mailmerge template in which you select the Excel file/sheet as the source and link the fields to the cells?
Summary: I want to be able to add a macro that will work with mail merge to let me save file at end of each form letter merge instead of having one large doc with lots of "letters" (using for contracts). Here...
Summary: Can anyone give me advise on creating an MS Word Mail Merge setup with an MS Access query that has multiple tables. e.g. can I add a subform (mail merge) to a main Word Mail Merge document using linke...
Summary: I am trying to open a predefined mail merge document from access us VBA and when the document opens it opens another instance of Access. I used Q159328 for the programming and found another article f...