version to test
... press [Demo] to compare
something like this?
next?
Do that file have sheet name "Data"?
After error,
was there any data (text..) in cells from J to L, from row 1?
Could You send that file for checking?
Hi vletm:
I tried to send the file but chandoo refuse it to be very large.
Thank you for your help
@febausa Sheet "Data" is the result Sheet1.
I collect all data from Sheets A to F.
You have to have raw data (the content draw numbers) in Sheets A to F!
You wrote: on each page A, B, C, D, E, F; is includes the content draw numbers that correspond to each ballset.
Check Your those sheets.
If sheets from A to F are empty then the Data-sheet will be empty too.
Oh, just opposite way, yes!
There's One Good Thing,
it's easier to do this way.
From 'Data' to 'A:F'
I don't 'touch' 1st rows!
Test, please
Can You send that file?
Screenshot?
or at least those row's data?
I'm testing it now with rows 399 & 400. It works ...
Sub BallSet()
Application.ScreenUpdating = False
max_tabs = Worksheets.Count
If IsDate(Acol) Then
Bcol = Left(.Cells(y, 2), 1)
Ccol = .Cells(y, 3)
End With
Application.ScreenUpdating = True
ans = MsgBox("Ready")
End Sub
Oh yeah, nice!
The reason is that cell [B347] has value 'A ' ( letter-A and space)!
You can see it too, can You?
There should be ONLY one character.
You have to possibilities.
1) delete that extra space away
2) modify code
2a) in the beginning, add one row
2b) find next rows and modify one row; this solves caseCode:Sub BallSet() Application.ScreenUpdating = False max_tabs = Worksheets.Count
2c) in the end, add one rowCode:If IsDate(Acol) Then Bcol = Left(.Cells(y, 2), 1) Ccol = .Cells(y, 3)
Code:End With Application.ScreenUpdating = True ans = MsgBox("Ready") End Sub
version to test
... press [Demo] to compare
@febausa
Do You mean Cell A52 in sheets A,B,C,D,E ?
Did You told, that You should have some kind of limit that how many rows can copied to those sheets? Or ...
What will happen, then one day there is for example 51st A-BallSet?
That BallSet would use row 52, including cell[A52]!
So far, in the beginning of that [Demo],
all cells except the 1st row will clear (=Old datas away.)
If You are using something else in those sheets,
You can use area from cell[I1] to right!
Okay?