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

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

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[^]
Share this answer
Espen Harlinn 8-Apr-12 6:57am    
Nice link :-D
Monjurul Habib 8-Apr-12 12:17pm    
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.
Share this answer

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