Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default Draw Entries

(not sure if last request went through so apologies if it did)

I have a name in Column A, say the data starts in A23, then in Column I i
will be producing a the number of draw entries this person would acquire, I
then need to paste the Name onto a Draw spreadsheet. Also I need to number
the entries

EG
Name no. of draws
Gareth Havard 3
Anon 1

To number my name on the draw sheet in columns
a b
1 Gareth Havard
2 Gareth Havard
3 Gareth Havard
4 Anon

And so on and so on until there are no more names, some will have zeros and
should not be pasted. Is this possible?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Draw Entries

try:

Sub test()

dim i as integer

dim j as integer

lastrow = Cells(Rows.Count, 1).End(xlUp).Row

Range("d:d").ClearContents

For i = 1 To lastrow

For j = 1 To Cells(i, 2)

lrow = Range("d65536").End(xlUp).Row

Cells(lrow, 4).Offset(1, 0) = Cells(i, 1)

Next j

Next i

End Sub



HTH



Regards



Sebation.G

"GBH99" ...
(not sure if last request went through so apologies if it did)

I have a name in Column A, say the data starts in A23, then in Column I i
will be producing a the number of draw entries this person would acquire,
I
then need to paste the Name onto a Draw spreadsheet. Also I need to number
the entries

EG
Name no. of draws
Gareth Havard 3
Anon 1

To number my name on the draw sheet in columns
a b
1 Gareth Havard
2 Gareth Havard
3 Gareth Havard
4 Anon

And so on and so on until there are no more names, some will have zeros
and
should not be pasted. Is this possible?



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
Combine Multiple Entries with differing amounts of entries Katie Excel Worksheet Functions 2 November 28th 07 09:53 PM
How to Draw an arc which is 1/4 of a circle? Johannes Charts and Charting in Excel 5 August 28th 05 01:13 AM
Draw a chart kishore Excel Programming 0 May 13th 05 12:07 PM
How do I change multi-line entries to single line entries in Exce. CPOWEREQUIP Excel Worksheet Functions 3 April 14th 05 12:38 AM
Draw Buttons junx13[_12_] Excel Programming 1 September 21st 04 03:26 AM


All times are GMT +1. The time now is 04:37 AM.

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

About Us

"It's about Microsoft Excel"