ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   help in selecting cells , VBA in Excel (https://www.excelbanter.com/excel-programming/291861-help-selecting-cells-vba-excel.html)

Kortrijker

help in selecting cells , VBA in Excel
 
Dear all,

Can someone help me, please?

I want Excel select data automatically.

I have one Excel sheet, data are transferred from SQL server into Excel,
which means I don't know how many recorders in the table everytime.

Is there codes of VBA to select the whole data in this table ? Thanks.

Best wishes
jiang



Bob Phillips[_6_]

help in selecting cells , VBA in Excel
 
Activesheet.UsedRange.Select

as a starter

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Kortrijker" wrote in message
...
Dear all,

Can someone help me, please?

I want Excel select data automatically.

I have one Excel sheet, data are transferred from SQL server into Excel,
which means I don't know how many recorders in the table everytime.

Is there codes of VBA to select the whole data in this table ? Thanks.

Best wishes
jiang






All times are GMT +1. The time now is 02:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com