Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a worksheet sent to me with over 700 names on it. I need to put 4
extra lines under each name. Is there a way to do this without having to individually insert those lines as this will take a long time. Thanks. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
What is the reason/purpose for placing 4 lines under each name? More
likely you may use 4 columns after the name for that purpose. RENEE wrote: I have a worksheet sent to me with over 700 names on it. I need to put 4 extra lines under each name. Is there a way to do this without having to individually insert those lines as this will take a long time. Thanks. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Insert a new column A.
Put 1, 2, 3, ..., 700 in A1:A700 Put 1 in A1 put 2 in A2 Select both A1:A2 and drag down to A700. Select A1:A700 Edit|copy Select A701 Edit|paste Do the same in A1401 and A2101 Now you have 2800 lines that are used. Select all your columns and sort by column A ascending and column B descending (putting the name at the top). Delete column A. RENEE wrote: I have a worksheet sent to me with over 700 names on it. I need to put 4 extra lines under each name. Is there a way to do this without having to individually insert those lines as this will take a long time. Thanks. -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Here is a macro MVP Don Guillett wrote in reply to a similar request. It
assumes the 700 names are in column A. Column A is represented by the 1 in Cells(Rows.Count, 1). Change it if necessary (A=1, B=2, etc.) Sub insertrows() 'by Don Guillett Dim i As Long For i = Cells(Rows.Count, 1).End(xlUp).Row To 2 Step -1 Rows(i).Resize(4).Insert Next i End Sub Put this code in a general Visual Basic module: 1. ALT-F11 brings up the Visual Basic Editor (VBE) window 2. ALT-I then M opens a fresh module 3. Paste in the code and close the VBE window 4. The macro is available to run, and will be saved with the workbook. Press ALT-F8 to display the list of available macros in your workbook. If you are new to macros, these links may be helpful: http://peltiertech.com/WordPress/200...e-elses-macro/ http://www.mvps.org/dmcritchie/excel/getstarted.htm Hope this helps, Hutch "RENEE" wrote: I have a worksheet sent to me with over 700 names on it. I need to put 4 extra lines under each name. Is there a way to do this without having to individually insert those lines as this will take a long time. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Complicated question adding extra horizontal lines | Charts and Charting in Excel | |||
When printing second copy, extra lines appear | Excel Discussion (Misc queries) | |||
Inserting extra lines for comments in an excel sheet | Setting up and Configuration of Excel | |||
How do I remove extra blank lines in a column when I print? | Excel Discussion (Misc queries) | |||
Pivot needs BOTH cur/cum totals w/out extra cum cols/repeat lines | Excel Worksheet Functions |