Gatorsbucs
Technical User
Hello,
Was wondering if someone might be able to help with some EB code? My macro currently grabs 10 lines of data (For Y = 10 to 19) from 5 screens (For P = 1 to 5), PF8 forwards to the next page if there is more data. This runs in a loop using data in column B (X) until it is either blank or reaches a count of 200. My issue is: the data in cell B10 may have less data to pull than that of cell B5. It may only have 1 page of data to
pull vs 5 (For P = 1 to 5) and may also only have 1 line of data. What happens in these cases is the code continues to pull the data. When there is no longer any actual data on
the screen it pulls the "blank" data and populates blanks in the following rows of my excel spreadsheet. Since there are no additional pages to pull it continues to pull the
original line of data. So I end up with 1 row of data followed by 9 blank rows, then on row 10 I get the original line of data. What I think I need to do is put in some sort
of “if Trim(A2) = "" then" ........what I need it to do when it comes to a blank area on the screen is move on to the next cell in column B on not “End Sub” This is the part I can’t figure out.
Thanks
Was wondering if someone might be able to help with some EB code? My macro currently grabs 10 lines of data (For Y = 10 to 19) from 5 screens (For P = 1 to 5), PF8 forwards to the next page if there is more data. This runs in a loop using data in column B (X) until it is either blank or reaches a count of 200. My issue is: the data in cell B10 may have less data to pull than that of cell B5. It may only have 1 page of data to
pull vs 5 (For P = 1 to 5) and may also only have 1 line of data. What happens in these cases is the code continues to pull the data. When there is no longer any actual data on
the screen it pulls the "blank" data and populates blanks in the following rows of my excel spreadsheet. Since there are no additional pages to pull it continues to pull the
original line of data. So I end up with 1 row of data followed by 9 blank rows, then on row 10 I get the original line of data. What I think I need to do is put in some sort
of “if Trim(A2) = "" then" ........what I need it to do when it comes to a blank area on the screen is move on to the next cell in column B on not “End Sub” This is the part I can’t figure out.
Thanks