Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-04-2018, 05:21 AM
Stevie23 Stevie23 is offline Exporting data to an excel template Windows 8 Exporting data to an excel template Office 2013
Novice
Exporting data to an excel template
 
Join Date: Apr 2018
Posts: 1
Stevie23 is on a distinguished road
Default Exporting data to an excel template

Hello all,

I have a small transport company and i have a master overview of all shipments i expect. Now i've created a unloadingdocument, which i want to populate automatically with the data from the overview, so i want to select which lines i want to add to this unloadingdocument(perhaps via radio button, check button and then an execute button?)


I've tried online tutorials about macro's and vba but i can't make it work.
I've colorcoded where i want which information to be added on the template, everything that is white is for me to fill in when the goods arrive.


Many thanks in advance and please don't hesitate if you have more answers




kind regards
Attached Files
File Type: xlsx Master Overview.xlsx (236.9 KB, 13 views)
File Type: xlsx UNLOADDOC Empty.xlsx (12.4 KB, 13 views)
Reply With Quote
  #2  
Old 04-04-2018, 08:46 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Exporting data to an excel template Windows 7 64bit Exporting data to an excel template Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Personally, I would try using your Master Overview as "database" and create the template in Word.
It should not be too complicated using Mail Merge to extract the information.
Have a look at our Word forum and the Mail merge section to get a first idea about what can be achieved and if it suits your needs.
If you want t go that way, Macropod and the MSWord "gurus" will be of great help.

BTW in Excel you should always avoid using merged cells. They are nothing but trouble. For formatting purposes, " center across selection" is much better
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 04-04-2018, 01:14 PM
NoSparks NoSparks is offline Exporting data to an excel template Windows 7 64bit Exporting data to an excel template Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 831
NoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really niceNoSparks is just really nice
Default

Would double-clicking on a line and having it highlight a certain color be an acceptable way of selecting what you want to add to the UNLOADDOC sheet ?
Reply With Quote
  #4  
Old 04-05-2018, 12:12 AM
ArviLaanemets ArviLaanemets is offline Exporting data to an excel template Windows 8 Exporting data to an excel template Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

I think you can easily make it with a single workbook.

From where in your Master Overview workbook you want to read data into colored areas in UNLOADDOC?

Into 'Master Overview'.xlsx, add a sheet where you can register shipments (the table must contain an unique code for shipment);

Into table from where you want to read data, add a column for shipment code, and make fields in this column Data Validation Lists, so you can select the shipment for table row. NB! You must have all this data in single table!

Add a report sheet p.e. UNLOADDOC or whatever you want to name it. Design some cell to select shipment code. When shipment code is selected, all info available in data entry sheet is read into report (i.e. the report is filled). To get right rows into report, you need a helper column, where rows are numbered, and another one where entries with shipment code selected on report sheet are numbered. On report sheet you calculate the report row number, check that it is <= as max entry number with selected shipment code on data sheed, when yes, then find the row number with same entry number as report row number (SUMIFS() is your friend here), and read according info from data sheet into report field. When you need to fill some additional data before sending the report out, then enter this info into Shipments table and read from there into report.

When you want to send the report as Excel file, create an empty excel file, copy all datarange on report sheet, and use Paste Special to copy values, formats, and column widths (3 copy operations, in such way you avoid coping formulas which don't work in other Excel file, but preserve the current look of report).

When you want to send the report as printed document, then print it as pdf (install some free pdf-writer like CutePDF int your computer for this).

When you get this report back with some additional info filled in, and you want to keep this info in your Excel database, then have according fields in Shipments table (Unloaded by? Comments?) or in your data entry table (Present), and fill in the info from returned report.

When you want to send another shipment out, simply select on report sheet the code for this another shipment. It's all!

Additional recommendations:
Define your tables as Tables (Insert > Table) - when you add new records into table, all formulas, formats, data validations, etc. are added automatically for new rows (formats, formulas, or data validations must be same for whole column for this feature to work);
Add tables where you can register customers and transporters, and use data validation lists to select them into your data entry table - so you avoid typing errors which may affect your data integrity.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Exporting data to an excel template Macro for exporting Word data to an excel register Seb Word VBA 12 03-30-2017 07:30 PM
Exporting data to an excel template Auto exporting data/tables into a word template Jiing Chiang Excel Programming 1 02-04-2016 02:06 AM
Exporting data to an excel template Importing/Exporting data using Excel and some specific rules stagg201 Excel 1 03-27-2014 08:58 PM
Exporting data to an excel template Exporting Resource Usage data to Excel samg54 Project 1 08-02-2013 05:28 AM
Exporting data to an excel template * Exporting Access Data to Excel djreyrey Excel Programming 1 03-23-2012 10:03 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:50 AM.


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