Wednesday, October 19, 2011

VBA to Export Properties to Excel

 Excel is a powerful program and I often find myself using it in conjunction with other software programs. As a CAD engineer, I am often making parts lists in Micosoft Excel based upon 3D data files in CAD software, such as CATIA V5. Lucky for me CATIA has its own catscript VBA editor which allows you to write macros which can automatically export data from Catia to Excel, a huge timesaver! 

I recently created an example where I take several key properties from a 3D CAD model part including the mass, thickness, material, and part number and export them into a nice little spreadsheet. I can then format the spreadsheet from within my Catia macro. Every little thing I can do to cut back on those extra mouse clicks (call me lazy I guess). 

This code can also help you to learn how to program in visual basic which is very helpful in automating repetitive tasks. Here is a small sample:

'to excel
Dim Excel As Object
Dim workbooks As workbooks
Dim workbook As workbook
Dim Sheets As Object
Dim Sheet As Object
Dim worksheet As Excel.worksheet
Dim myworkbook As Excel.workbook
Dim myworksheet As Excel.worksheet

On Error Resume Next
Set Excel = GetObject(, "EXCEL.Application")
If Err.Number <> 0 Then
Err.Clear
Set Excel = CreateObject("EXCEL.Application")
Else
Err.Clear
MsgBox "Please note you have to close Excel", vbCritical
Exit Sub
End If
Excel.Visible = True

'load a sheet
Set workbooks = Excel.Application.workbooks
Set myworkbook = Excel.workbooks.Add
Set myworksheet = Excel.ActiveWorkbook.Add
Set myworksheet = Excel.Sheets.Add

'download the properties
'row one
Excel.Cells(1,1)="Part Number"
Excel.Cells(1,2)="Thickness"
Excel.Cells(1,3)="Material"
Excel.Cells(1,4)="Mass"  


Download the full code here. You can also import Excel files into programs such as CATIA but that is a post for another day!

 CATIA V5 to Excel Properties Exporter Macro.catscript download

Monday, October 10, 2011

How to view mpp files without Mircosoft Project

This may not be an excel tip but it is in the Microsoft Office family of products. If you're searching for how to open a .mpp file without Microsoft Project you may have found yourself in a similar situation which I was in not too long ago. I needed to open a Microsoft Project file but I didn't have the software on my pc. I did what most people would probably do and browsed the internet for a free mpp viewer. The problem is all the viewers I found had to be downloaded and installed. Well, I had no administrative privileges on my machine and could not install any new programs. Luckily I found a great solution. Go to www.amiproject,com. You can open and view your mpp files in an internet browser without having to download and install any software. I think it even lets you edit and save your project file as well.

Check out other project management resources here.

Tuesday, September 6, 2011

How to Insert a Diagonal Line in Excel Spreadsheet Cell


How do you make a diagonal strike through line in a Microsoft Excel spreadsheet cell? If you're using Excel 2007 go to the home tab where you'll see the Format Numbers options area. There is a drop-down box which may be currently displaying "date". Click the arrow and select "More number formats." You'll see a bunch of tabs on the top of the pop up display. Go to the "border" tab. Select the diagonal line. This will insert a diagonal line from the lower left hand to the upper right hand corner of a cell, creating a "strike-through" effect if you will. Easy eh?

Monday, August 22, 2011

2011-2012 NFL Spreadsheet Schedule

I've found two great 2011 NFL schedule spreadsheets which I've made available to download. The first is similar to the NCAA 2011 helmet schedule and features the helmets of all the NFL teams. The schedule is broken up into two work sheets for the AFC and NFC respectively. If you are interested you can download the NFL 2011-2012 Schedule in an Excel spreadsheet by clicking on the download link.



The other spreadsheet doesn't have the cool football helmets but it is more highly customizable. You can filter the below Excel spreadsheet as you like an you can  actually sort the workbook by week, date, away team, home, team, even game time! Download here.

UPDATE 7/13/12: Download the 2012-2013 NFL Schedule Excel Spreadsheet

Check out our 2012 NFL fantasy mock draft creator spreadsheet.

2011 NFL Excel  Helmet Schedule.xls download
2011-2012 NFL Spreadsheet Schedule.xlsx download
2012-2013 NFL Excel Helmet Schedule Spreadsheet.xls

Sunday, August 7, 2011

2011 NFL Fantasy Football Spreadsheet

 Downloadable 2011 Fantasy Football Spreadsheets for Excel 2007

Are you looking for 2011 fantasy football spreadsheets that you can download, print out or make adjustments to? Well, I am too and luckily I found a few good ones which I have made available to download here.


This 2011 Fantasy Football Rankings spreadsheet can be updated throughout training camp and the preseason with the latest player rankings by position.  Note that the different positions can be found by clicking on the different sheet numbers at the bottom of the workbook. Download the 2011 NFL fantasy football spreadsheet.

Check out my other sports related downloadable spreadsheet templates. What other fantasy or sports related spreadsheet would you find useful?

I would appreciate it if you could vote for me in this CATIA 2011 visualization contest. http://apps.facebook.com/dassault-catia/profile/150.html

***Also, an update on the Excel Spreadsheets Help $100 giveaway contest is coming soon!****

2011 NFL Fantasy Football players list by position Excel spreadsheet.xls download

Tuesday, August 2, 2011

2011 NCAA Excel Helmet Schedules

Are you ready for some football? I sure am. I found an excellent 2011 NCAA football schedule spreadsheet online which also includes the helmet design for every team. You can download individual conference schedules or the master schedule for all conferences in Excel. If you're as big a fan as I am you might keep it on your desktop for easy reference.
Download the full schedule which includes all conferences: ACC, Big 10 Ten, Big 12, SEC, PAC 10, and Big East Helmet Schedules! NFL schedule and fantasy league templates coming soon!


2011 College Football Excel Spreadsheet Helmet Schedul.xls download

Monday, August 1, 2011

Employee Timesheet Spreadsheet Template

Are you an employer looking for an employee time-sheet template? I've created a very easy to use employee work log spreadsheet which is available to download, along with some of our other templates. The instructions are included within the spreadsheet but they are not really needed as it is pretty straightforward. I have conveniently colored all cells yellow where your data needs to be entered. Another thing to note, the spreadsheet automatically assumes a half hour lunch. However, you can enter an "X" if no lunch was taken. Please let me know if you would like to see any revisions or additions. I am always looking for ways to improve my spreadsheets. Download the Excel time keeping template here.



Employee Timesheet Spreadsheet Template.xls download