sample excel sheet would be easier to understand and solve
Reg Umesh On Thu, Mar 17, 2011 at 11:20 PM, Preston Moore <moor...@ldschurch.org>wrote: > I am just starting to use VBA so I am a neophyte. I have data that shows > units sold by product listed by store for over 40 stores. Each store has > its own ID code and they all start with the letter "D". When I encounter > each new store I want to copy and past the units sold of each product to a > pre-formatted spreadsheet. I think I want to do this by looping using the > FOR EACH-NEXT construct. My question is: how do I write an instruction > that says stop and evaluate the data (for copying & pasting) each time a new > store code is encountered? I think I need to write something to the effect > that whenever a line starts with a "D" to stop and process? How would I go > about doing this? Thanks. > > > > > > NOTICE: This email message is for the sole use of the intended recipient(s) > and may contain confidential and privileged information. Any unauthorized > review, use, disclosure or distribution is prohibited. If you are not the > intended recipient, please contact the sender by reply email and destroy all > copies of the original message. > > -- > > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > Like our page on facebook , Just follow below link > http://www.facebook.com/discussexcel > -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel