Good evening, good evening
I have a problem with VBA, can you help me, please. Following:
I have excel with Sheet1 and Sheet2. On Sheet2 I have a list of clients where I have the following data: Name, City and Age.
InVBA,IneedtocopythedatafromSheet2andpasteitontoSheet1basedonsomefilters,forexamplewheretheCityisequalto"São Paulo".
Example of the result would be on Sheet1, copy the data where the city is equal to São Paulo, then would have John and Manuel.
Some points that can be a hindrance: 1 - I do not know the number of rows in the register of Sheet2. For example, as the image above, the register has 4 records, but could have 200. In this case I do not know in advance how many lines it has.
2 - In the register, it may be that between two records have blank lines. For example, between the Manoel and Carlos records, there is a blank line.
Thank you.