data table
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Data in table

Data in table

resolvedResolved · Low Priority · Version Standard

replyReply Tue 5 Feb 2008, 15:52Delegate josephine said...

josephine has attended:
Excel Intermediate course

Data in table

can you automatically insert a blank line in between each row of data in table

For upcoming training course dates see: Pricing & availability

replyReply Wed 6 Feb 2008, 10:57Trainer Carlos said...

Inserting blank rows between 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

 

Please browse our web site to find out more about
microsoft excel 2003 vba courses and other Microsoft training courses.

Excel tip:

Convert Text to Columns in Excel 2010

If you have a cell in your Excel spreadsheet that contains a lot of text and you want to divide it into separate columns, this can only be done if there is a logical character which separates the text, for example, a comma.

Select the cells you would like to convert. On the Data tab, click Text to Columns. Choose the format of your current data.

Select Delimited if the text contains a logical character otherwise select Fixed Width if there are a certain number of spaces between each field.

Click Next when a preview of the data appears. Then select the type of character that separates the various fields. If the character is not listed, select Other and enter the character.

Click Next again and then choose the format for each of the columns. Select the column heading in the Data preview and then select a data type from the Column data format options.

Click Finish and the text will appear in several columns.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard