Hi, I have a small problem with my range option. I am trying to run mycode and it has to format some precise cells. My code seems to be good but when I run it, instead of selecting the range that I want, my macro is selecting the whole sheets so it detroys what I did previously..
Could someone help me please? Thanks
Here's my code :
Could someone help me please? Thanks
Here's my code :
Code:
For i = 5 To 12
ThisWorkbook.Sheets(i).Activate
ThisWorkbook.Sheets(i).Range("J6:J300").Select
Selection.NumberFormat = "m/d/yyyy"
ThisWorkbook.Sheets(i).Range("Q6:Q300").Select
Selection.NumberFormat = "m/d/yyyy"
ThisWorkbook.Sheets(i).Range("B6:B300").NumberFormat = "General"
Next i