Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Probably the most easy question here...
Good morning / evening!
What's my ploblem, I created a database in MS Access, with 3 crosstab queries in it. I want the results of those queries to be put in one Excel file, on one worksheet, in new rows. It's easy when I use TransferSpreadSheet method for the first query, but I don't know how many cells (rows and columns) will it use. My question is, how to find out using VBA, which cell is the last one, because I have to append results of the second and third query to it. I don't know how to describe range of cells when I'm not sure where cells on my worksheet are ending... Thank you for your help, with best regards, Jason |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Probably the most easy question here...
cLastRow = Cells(Rows.Count,"A").End(xlUp).Row this tests column A. If you are creating an Excel instance from Access, you will need the appropriate object qualifiers. -- HTH RP "JasonS" wrote in message ... Good morning / evening! What's my ploblem, I created a database in MS Access, with 3 crosstab queries in it. I want the results of those queries to be put in one Excel file, on one worksheet, in new rows. It's easy when I use TransferSpreadSheet method for the first query, but I don't know how many cells (rows and columns) will it use. My question is, how to find out using VBA, which cell is the last one, because I have to append results of the second and third query to it. I don't know how to describe range of cells when I'm not sure where cells on my worksheet are ending... Thank you for your help, with best regards, Jason |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Easy question | Excel Discussion (Misc queries) | |||
Easy question for you all | Excel Worksheet Functions | |||
*EASY* question! | New Users to Excel | |||
new user with easy question? not easy for me | New Users to Excel | |||
easy question | Excel Worksheet Functions |