Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Dynamic Creation of rows in Excel

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/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Dynamic Creation of rows in Excel

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" wrote in message ...
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
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
Number of rows over 30 days after creation Jim Excel Discussion (Misc queries) 1 February 26th 10 01:09 PM
Dynamic creation, or something different needed? Nehvun Excel Worksheet Functions 0 July 31st 07 06:12 AM
Dynamic Formula Creation?? [email protected] Excel Discussion (Misc queries) 2 October 27th 06 09:14 AM
Dynamic Control Creation in VBA Asif[_3_] Excel Programming 2 December 9th 03 07:35 PM
Dynamic Creation of borders Tyrusst Excel Programming 1 October 15th 03 12:47 PM


All times are GMT +1. The time now is 01:35 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"