Formerly Best Training
© 2024 STL. All Rights Reserved.
All prices offered for business users and exclude VAT. E&OE
2nd Floor, CA House, 1 Northey Street, Limehouse Basin, London, E14 8BT. United Kingdom
Forum home » Delegate support and help forum » Microsoft Excel Training and help » Data in table
Resolved · Low Priority · Version Standard
josephine has attended:
Excel Intermediate course
can you automatically insert a blank line in between each row of data in table
Hi Josephine
As I explained yesterday this would need some VBA code. So do the following steps:
1. Open the Workbook in which you need to insert the rows.
2. Open the Tools menu Select Macro and Click the Visual Basic Editor (VBE)
3. In the VBE Open the Insert menu and Click Module. This inserts a new Module.
4. Copy the following code and paste into the new module (Module1)
Sub InsertBlankRows()
'Select last row in worksheet.
Selection.End(xlDown).Select
Do Until ActiveCell.Row = 1
'Insert a blank row
ActiveCell.EntireRow.Insert Shift:=xlDown
'Move up one row.
ActiveCell.Offset(-1, 0).Select
Loop
End Sub
5. Close the VBE.
Back in the workbook
6. Click the first cell of the first row of the table eg A1
NB Ensure that there are no blank cells in this column as the system will not do anything past this
7. Open the Tools menu Select Macro and Click Macros
8. In the Macro dialog box Select the InsertBlankRows macro and click Run
The system will insert a blank row between each record
Hope this helps
Carlos
|
Excel tip:Creating a range of monthly payments as textYou could use a formula to create a range of payment ie. payment amount for x% to y% rate with fixed terms and principle. |
We'll call during UK business hours
Server loaded in 0.08 secs.