Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am writing a Visual C++ 6.0 client which need to launch Excel and
display some data using Excel COM automation interface. How can I programmatically set the column width of a particular column (e.g. column 3) in Excel? I can easily achieve this in VB as follow: sheet.Columns(3).ColumnWidth = 40 But I cannot do this in C++ because the method LPDISPATCH _Worksheet::GetColumns() does not take any argument. I believe this method return a Range object. How can I set the width of column 3 using C++? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change Cell Width WITHOUT changing Column width | Excel Discussion (Misc queries) | |||
how do I create multiple column width in the same column in excel | Excel Discussion (Misc queries) | |||
How to make cell width different than the column width it lies in | Excel Discussion (Misc queries) | |||
Adjust Cell Width in Visual Basic | Excel Discussion (Misc queries) |