Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2016, 04:54 PM
macropod's Avatar
macropod macropod is offline Create MID function for Word using VBA? Windows 7 64bit Create MID function for Word using VBA? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,366
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default


What you're asking for isn't possible - VBA cannot create new field functions. If the field data are purely numeric, you could use Word's INT and/or MOD math functions to truncate them. Beyond that, you'd have to edit the data post-merge, bearing in mind that there will be no mergefields in the output and any bookmarks in the mailmerge main document will have been deleted from the output.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
user defined functions



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create MID function for Word using VBA? Restrict Editing function disable insert textbox function IanM_01 Word 5 11-21-2015 02:29 AM
Create MID function for Word using VBA? #REF! Error in calling VBA function disappears when function is copied lcaretto Excel Programming 2 05-26-2014 07:19 PM
Creating a graph for Future Value function (FV function) bmoody Excel 2 11-06-2013 10:52 AM
Create MID function for Word using VBA? Word VBA: How to create a command button and trigger a function? tinfanide Word VBA 2 12-02-2011 05:51 AM
Is there a function on MS Word showing the lastest changes made on a word file? _____ Word 2 10-30-2010 05:33 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:36 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