Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default adding and copying rows


I have a list of items, and I want each item to appear 6 times,
althought now they are just there once, for the last sheet i went to
add row then dragged down what was in the box, but there has to be an
easier way.
Now:
a
b
c
d

What I want:
a
a
a
a
a
a
b
b
b
b
b
b
c
c
c
c
c
c
d
d
d
d
d
d

I am a very new excel user and cannot figure out how to write a macro
or something to do this. please help.

Thanks in advance for any help.


--
CatherineN
------------------------------------------------------------------------
CatherineN's Profile: http://www.excelforum.com/member.php...o&userid=35469
View this thread: http://www.excelforum.com/showthread...hreadid=558649

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default adding and copying rows


Might be easiest to just do it by hand once if there aren't loads of
items. I fthere are, this'll do it (select the first entry in your list
then run it)

sub sixplicate
do
range(activecell.offset(1,0),activecell.offset(6,0 )).entirerow.insert
range(activecell.address,activecell.offset(5,0).ad dress).filldown
activecell.offset(6,0).select
loop until activecell.value=empty
end sub



Col


--
colofnature
------------------------------------------------------------------------
colofnature's Profile: http://www.excelforum.com/member.php...o&userid=34356
View this thread: http://www.excelforum.com/showthread...hreadid=558649

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default adding and copying rows


Thanks I will try, I have to work with thousands of items and i have
done 2 of the documents by hand and it takes hours, and there are more
documents to come so I am kinda frustrated with doing it by hand :)


--
CatherineN
------------------------------------------------------------------------
CatherineN's Profile: http://www.excelforum.com/member.php...o&userid=35469
View this thread: http://www.excelforum.com/showthread...hreadid=558649

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default adding and copying rows


Cath - if you need more help, IM me


--
colofnature
------------------------------------------------------------------------
colofnature's Profile: http://www.excelforum.com/member.php...o&userid=34356
View this thread: http://www.excelforum.com/showthread...hreadid=558649

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying & Inserting Rows w/o Affecting other Rows Etc. LRay67 Excel Worksheet Functions 1 October 22nd 08 02:10 AM
Adding Rows and copying cells Jeff S. New Users to Excel 2 September 5th 08 06:16 PM
Adding Rows offsets to working rows across two worksheets tom Setting up and Configuration of Excel 3 July 30th 06 07:54 PM
Copying multiple rows to other worksheets (but amount of rows varies) - How? David Smithz Excel Discussion (Misc queries) 1 June 18th 06 04:31 PM
Copying and skipping (adding) rows [email protected] Excel Programming 1 January 22nd 06 06:35 PM


All times are GMT +1. The time now is 10:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"