PC Review


Reply
Thread Tools Rate Thread

Dynamic Creation of rows in Excel

 
 
vikrampn
Guest
Posts: n/a
 
      17th Dec 2003
HellO everyone,
I never did any VBA coding and i am right now lost on where to
start. This is what i am trying to achieve

I have a field "Number of Products", based on the number of products, I
need to create that many products in my excel

Each product has

Product name
Product description
Product Photo
Number of Competitors
Competitor name
Compeitor description

If the user enters 5 int he Number of products, then my method/Function
should be able to generate that many products.

I will really really appreciate any comment, suggestions in achieving
this. I am not even sure, if this something easy to do .

Regards
Vikram


---
Message posted from http://www.ExcelForum.com/

 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      17th Dec 2003
If I understand you correct

This will copy A1:A6 down with a blank line between each product

Sub test()
Dim pcount As Long
Dim a As Long
a = 1
myNum = Application.InputBox("Enter a number")
For pcount = 1 To myNum
Range("a1:a6").Copy Cells(a, 1)
a = a + 7
Next
End Sub


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"vikrampn" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> HellO everyone,
> I never did any VBA coding and i am right now lost on where to
> start. This is what i am trying to achieve
>
> I have a field "Number of Products", based on the number of products, I
> need to create that many products in my excel
>
> Each product has
>
> Product name
> Product description
> Product Photo
> Number of Competitors
> Competitor name
> Compeitor description
>
> If the user enters 5 int he Number of products, then my method/Function
> should be able to generate that many products.
>
> I will really really appreciate any comment, suggestions in achieving
> this. I am not even sure, if this something easy to do .
>
> Regards
> Vikram
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Control Creation in C# Matt Microsoft C# .NET 0 24th Apr 2007 09:31 AM
Dynamic Creation of list box on excel sheet and handling events jigs Microsoft Excel Programming 3 18th Jan 2007 09:39 AM
Error in dynamic excel creation ramkumar_cpt Microsoft Excel Discussion 0 9th Dec 2005 02:18 PM
ASP Dynamic Excel Creation Chris Oswald Microsoft Excel Programming 0 9th Nov 2004 05:27 PM
MFC dynamic creation Rajko Microsoft VC .NET 1 14th May 2004 08:20 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:17 PM.