Hello to all, I wrote something like this:
[..
..
..
If Range("C7").Value = False then
Range("B7").Copy Range("B2")
ThisWorkbook.Refreshall
Thisworkbook.SaveAs Range("B7")
Elseif Range("C7").Value = True then
End if
If Range("C8").Value = False then
Range("B8").Copy Range("B2")
ThisWorkbook.Refreshall
Thisworkbook.SaveAs Range("B8")
Elseif Range("C8").Value = True then
End if
If Range("C9").Value = False then
Range("B9").Copy Range("B2")
ThisWorkbook.Refreshall
Thisworkbook.SaveAs Range("B9")
Elseif Range("C9").Value = True then
End if
...
...
]
and go on repeating these steps for C10, C11, etc. It works, but I think that this could be written in few rows of code rather than on pages of code.
[..
..
..
If Range("C7").Value = False then
Range("B7").Copy Range("B2")
ThisWorkbook.Refreshall
Thisworkbook.SaveAs Range("B7")
Elseif Range("C7").Value = True then
End if
If Range("C8").Value = False then
Range("B8").Copy Range("B2")
ThisWorkbook.Refreshall
Thisworkbook.SaveAs Range("B8")
Elseif Range("C8").Value = True then
End if
If Range("C9").Value = False then
Range("B9").Copy Range("B2")
ThisWorkbook.Refreshall
Thisworkbook.SaveAs Range("B9")
Elseif Range("C9").Value = True then
End if
...
...
]
and go on repeating these steps for C10, C11, etc. It works, but I think that this could be written in few rows of code rather than on pages of code.