Hi Guys,
I have a table that is divided in 3 blocks. Headers start from B3:BZ3 and has max of 31 rows. Problem is that the 3 block vary in horizontal dimensions daily. For example my first block would be B3:P33 on one day and B3:AE3 the other day. and same with other blocks of data. Fortunately there is atleast one blank cell in row 3 between the two blocks. I am using
RS = 2
RE = 78
iRS = 2
iRE = 0
HDRRange = Range(Cells(3, iRS), Cells(3, RE)).Address
iRE = Application.WorksheetFunction.Match("", ActiveWorkbook.Worksheets(ShtName).Range(HDRRange), 0)
SrcAdRange = Range(Cells(2, iRS), Cells(3, iRE)).Address
I am getting an error on line with worksheet function. I am not sure if matching a blank is creating the problem or I am not using the worksheetfunction properly. I am sure, I can get help here on this forum.
THNX!!!
I have a table that is divided in 3 blocks. Headers start from B3:BZ3 and has max of 31 rows. Problem is that the 3 block vary in horizontal dimensions daily. For example my first block would be B3:P33 on one day and B3:AE3 the other day. and same with other blocks of data. Fortunately there is atleast one blank cell in row 3 between the two blocks. I am using
RS = 2
RE = 78
iRS = 2
iRE = 0
HDRRange = Range(Cells(3, iRS), Cells(3, RE)).Address
iRE = Application.WorksheetFunction.Match("", ActiveWorkbook.Worksheets(ShtName).Range(HDRRange), 0)
SrcAdRange = Range(Cells(2, iRS), Cells(3, iRE)).Address
I am getting an error on line with worksheet function. I am not sure if matching a blank is creating the problem or I am not using the worksheetfunction properly. I am sure, I can get help here on this forum.
THNX!!!