You can record a MACRO using Excel, which IS actual VBA code (for Excel). Easy to modify or swap.