Rusty at excel, could use a hand with a macro
I am making a program to show work done on a home, and have a pile of old receipts to input.
I have pulled down in first column dates involved, but end up copy/paste any date that has more than one receipt, so would like a macro that I can click on a date and have it insert a line underneath with same date. |
Answer: Rusty at excel, could use a hand with a macro
Here's the formatted BBcode:
Step-by-step guide on how to create a macro that will insert a new row with the same date when you click on a cell with a date in it:
That's it! You can now use this macro to quickly insert new rows with the same date as any cell you select. |
This I tried....no workie
Sub AddLine()
' ' AddLine Macro ' Adds a line with same date under chosen line ' ' Keyboard Shortcut: Ctrl+l ' Sub Paste_OneRow() 'Copy and Paste Row Range("1:1").Copy Range("2:2") 'Cut and Paste Row Range("1:1").Cut Range("2:2") End Sub |
All times are GMT +1. The time now is 08:34 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com