View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
madwoman madwoman is offline
external usenet poster
 
Posts: 1
Default copy data across worksheets and add multiple lines


Hi

I have a spreadsheet which has lines/values in sheet1 which need to get
copied across to another worksheet but in some cases the macro needs to
generate multiple lines in the second sheet.
ie.
if sheet 1 column J contains a value then a line is generated in sheet2
that contains a copy of sheet1, cols a,b,d, f and j
if sheet 1 column K contains a value then a line is generated in sheet2
that contains a copy of sheet1, cols a,b,d, f and k

If both fields J & K in sheet1 contain data then two lines would be
generated in sheet2, if only one of the fields contain a value then
only one line would be generated

Any help with this wuld be appreciated


--
madwoman
------------------------------------------------------------------------
madwoman's Profile: http://www.excelforum.com/member.php...o&userid=28221
View this thread: http://www.excelforum.com/showthread...hreadid=571147