I have 2 worksheets, I need to update with data from another worksheet I receive every week. I wonder if its possible
to copy the data into the excel file with the 2 worksheets I need updating and then run a macro that selects the cells i need to output to the other worksheets.
I don’t know if i am being clear enough, below is an example.
For example I have the following sheet, I need to look though the “name” column and if the name begins with “sony”, copy the cells i need to the sony worksheet, if it begins with Samsung copy the cells i need to the Samsung sheet and so on.
I suppose that copying the whole row then deleting the columns I don’t need will also work.
Main Sheet Example
Name --- Type --- Extra --- Year --- Power
Sony TV --- LCD --- CAM --- 2009 --- 90W
Samsung TV --- LED --- WIFI --- 2010 --- 70W
Sony TV --- LCD --- SAT --- 2011 --- 90W
Hitachi TV --- LED --- CAM --- 2012 --- 70WSony Sheet Example
Name --- Type --- Year --- PowerSamsung sheet Example
Name --- Type --- Year --- Power
I would use an AUTOFILTER on column A to get just the rows I want visible, then we can copy just the columns we want. In this example, the shtARR is used for both the sheetnames and the filter, so make your target sheet names match, Sony, Samsung, Hitachi, etc. Then try this:
Autofilters are nice, they allow you to avoid looping row by row, but it means you can’t have blank rows in the data. Sort the data before to remove the blanks, if present.