Hello MR.EXCEL users,
Its been a little while, I have been smooth sailing let me tell you!
Ran into a little problem today... The following code is working perfectly, but is obviously cumbersome if the range gets too big.
Note I am also looping through several ranges so it causes quite a bit of lag to do it this way so I tried the following.
And it is not working at all...
My range does include some cells that are hidden, but I am not sure that that is the problem as it does not seem to even start where I intended it to.
Thank you in advance for any help
Its been a little while, I have been smooth sailing let me tell you!
Ran into a little problem today... The following code is working perfectly, but is obviously cumbersome if the range gets too big.
Code:
Dim job As Range
For Each rng In ws.Names
If InStr(1, rng.Name, "CAR", vbTextCompare) > 0 Then
Set job = ws.Range(rng.Name)
For x = 1 To job.Rows.Count
If job.Cells(x, g) = vbNullString Then GoTo 1
For q = y To job.Columns.Count
job.Cells(x, q) = vbNullString
Next q
1 x = x + 1
Next x
end if
next rng
Note I am also looping through several ranges so it causes quite a bit of lag to do it this way so I tried the following.
Code:
job.Range(job.Cells(1, y), job.Cells(job.Rows.Count, job.Columns.Count)).ClearContents
And it is not working at all...
My range does include some cells that are hidden, but I am not sure that that is the problem as it does not seem to even start where I intended it to.
Thank you in advance for any help