Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-22-2013, 09:49 PM
macropod's Avatar
macropod macropod is offline Inserting a Backspace Windows 7 64bit Inserting a Backspace Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
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


Hi Swerv,

Try the following version of your invoice document. It contains a macro named 'MakeInvoice' that lets you pick the data file. When you do that, the (modified) table is populated directly, without recourse to the textbox you used. Amongst other things, this frees you up to format the various parts of the invoice differently. to run the macro, press Alt-F8, then double-click on 'MakeInvoice'.

At the moment, the macro populates the document, which kind of complicates things a bit if you accidentally save it with a populated invoice. The macro will overwrite the data next time around, but IMHO it's better to start off with a blank document each time. Accordingly, if you change the macro's name to 'Document_New' and save the file as a Word template (ie with a .dot extension), it will create a new document each time you double-click on it and automatically prompt you for the data file.
Attached Files
File Type: doc Invoice.doc (52.0 KB, 16 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ctrl + Backspace does not function in protected documents dasleid Word 1 08-22-2012 01:25 PM
Inserting a table Katelyn Outlook 0 04-05-2012 09:39 AM
Inserting .AVI Casino799 PowerPoint 0 05-12-2011 06:51 AM
Inserting a Backspace Pls Help!! Inserting Subprojects... Dina Project 1 01-20-2011 09:55 AM
Backspace & Delete key issues marty69 Word 0 08-22-2010 08:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:40 AM.


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