Assuming EXCEL:
open the file
Start the "macro recorder"
Allways the same cells?:
Leave the "button" "relative reference" off
Relative to current positin?
set the "button" "relative reference" on
Do what you wish the macro to do and press "stop" when finished.
Open the VBA editor and edit anything you want (e.g. range or filename)
Best Regards
Morten