You may access them with []. Which, which is really beautiful, compared to the other way. Check yourself:
Try always to referreference the Worksheet as well
This is probably the most common mistake at thein vba. Whenever you copy ranges, sometimes the worksheet is not referredreferenced and thus VBA considers the wrong sheet the ActiveWorksheet.
- A good example, of when you could be justified to usein using
.Activate and .Select is when you want make sure, that a specific Worksheet is selected for visual reasons. E.g., that your Excel would always open with the cover worksheet selected first, disregadingdisregarding which which was the activesheetActiveSheet when the file was closed. Thus, something like the code below is absolutely
okThus, something like the code below is absolutely OK: