<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> Hi,
I am using Excel 2003.
I have a list of numbers in column A. The amount of numbers in the list varies.
Each number is a store account that I need to match to a list of products in column E.
Basically I have 5 products to be returned from all of the stores, but in order for me to load them into another system, I need to duplicate the products as many times as I have stores and then paste each store number at the top of each group of products. The products are duplicated below one another.
I have completed most of the macro, but am stuck on the pasting the numbers next to each group of products. I have a generic place holder in each spot that I want the number to copy over.
Below is the coding I am using to copy each cell in the list of stores. I just need to know how to paste them.
I am using Excel 2003.
I have a list of numbers in column A. The amount of numbers in the list varies.
Each number is a store account that I need to match to a list of products in column E.
Basically I have 5 products to be returned from all of the stores, but in order for me to load them into another system, I need to duplicate the products as many times as I have stores and then paste each store number at the top of each group of products. The products are duplicated below one another.
I have completed most of the macro, but am stuck on the pasting the numbers next to each group of products. I have a generic place holder in each spot that I want the number to copy over.
Below is the coding I am using to copy each cell in the list of stores. I just need to know how to paste them.
Dim j As Integer
Dim Count As Integer
Count = Range("D1")
For j = 1 To Count
Mycount = Range("c1") + 1
Range("C1") = Mycount
Range("A4").Select
ActiveCell.Offset(Mycount, 0).Copy
Next j