Answers below
--
Dave Hargis, Microsoft Access MVP
Arman said:
Hi Klatuu,
Thank you very much for you quick response.
Couple of questions, please see inline:
I need to copy the whole worksheet, do I still need to worry about the range?
For the first worksheet, probably not; however, copying the succeeding
worksheets may be a problem. My guess it the current worksheet would
overwrite the previous sheet. I haven't tested it, so I don't know for sure.
This is the part where I need the most help. I just need to paste my second
worksheet right after where the first one ends (better if there is one empty
row in between the two). How do I determine this without keeping the row
count in each worksheet? Is this even possible.
Here is how you can determine the number of rows used in the worksheet:
lngXlRows = xlSheet.UsedRange.Rows.Count - 1
This will return the last row in the range