Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Split or copy records n-times as excel scans the value of a colum

I would like to split or copy record n-times based on n-value on of a row.
How do you contruct the loop?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 230
Default Split or copy records n-times as excel scans the value of a colum

Perhaps a simple typo issue, but I cannot figure out -- from the precise
wording -- what you require, please be a little clearer.

I would love to help if I can.

Bill Benson


"Loops" wrote in message
...
I would like to split or copy record n-times based on n-value on of a row.
How do you contruct the loop?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Split or copy records n-times as excel scans the value of a colum

Sub AAA()
Dim i As Long, Num As Long
i = 1
Do While Cells(i, 1) < ""
Num = Cells(i, 1)
Cells(i, 1).Offset(1, 0).Resize(Num).EntireRow.Insert
Set rng = Cells(i, 1).Offset(1, 0).Resize(Num)
Cells(i, 1).EntireRow.Copy Destination:=rng
i = i + Num + 1
Loop
End Sub

--
Regards,
Tom Ogilvy

"Loops" wrote in message
...
I would like to split or copy record n-times based on n-value on of a row.
How do you contruct the loop?



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
Count Unique records based on the Criteria in another colum Rajat Excel Worksheet Functions 1 December 1st 06 12:46 AM
Count Unique records based on the Criteria in another colum Rajat Excel Worksheet Functions 0 November 30th 06 03:43 AM
Count Unique records based on the Criteria in another colum Ron Coderre Excel Worksheet Functions 0 November 29th 06 06:28 PM
Text to Columns - Only want to split SPECIFIC NUMBER of times NewKid Excel Worksheet Functions 9 February 3rd 06 02:40 PM
How do I stop virus scans when loading existing Excel files?? C. A. Brown Excel Worksheet Functions 1 December 23rd 04 05:27 PM


All times are GMT +1. The time now is 09:44 PM.

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"