ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Autofilter and formatting (https://www.excelbanter.com/excel-programming/392619-autofilter-formatting.html)

wayliff[_15_]

Autofilter and formatting
 
Hello,

Dont know if this is the right thread but here it is.

I am writing an app using vb.net and I have exported some data into an excel
spreadsheet.

I know how to turn on the autofilter in VBA as well as format text.
However how do you turn on the autofilter from Visual Studio???

exSheet.AutoFilterMode = False
exSheet.Range("A1:L1").AutoFilter()

I have tried the above and I always get an exception on the second statement.
Also some help formatting text would be great.

Thanks!


All times are GMT +1. The time now is 06:08 PM.

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