Click here to Skip to main content
15,036,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Equivalent code for vb.net

VB
apExcel.ActiveCell.MergeArea.RowHeight = _
                 apExcel.ActiveSheet.StandardHeight * _
               (Int((Printer.TextWidth(cInDef) / nPrinterScale) _
               / apExcel.ActiveCell.MergeArea.Width * nScaleFactor) _
              + 1)
Posted

Agree with Dave. If you still have any doubt then refer the namespace(excel's) & browse it for more details.
And for your information
.NET Code Conversion - Convert your code[^]
   
Comments
Espen Harlinn 8-Apr-12 6:57am
   
Nice link :-D
Monjurul Habib 8-Apr-12 12:17pm
   
5!
The code would be exactly the same. There's nothing in here that's specific to VB6.

This code is using the Excel object model. That won't change unless you're changing which version of Excel you're using and/or what method you're using to get at Excel.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900