Click here to Skip to main content
15,903,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The number of cell is 23 but i need the width in pixel any help thanks



VB
For nI = 1 To 23
            'UPGRADE_WARNING: Couldn't resolve default property of object apExcel.ActiveCell. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            Call SetBorder(apExcel.ActiveCell.Borders, Microsoft.Office.Interop.Excel.XlBordersIndex.xlEdgeTop, Microsoft.Office.Interop.Excel.XlLineStyle.xlContinuous, Microsoft.Office.Interop.Excel.XlBorderWeight.xlMedium)
            'UPGRADE_WARNING: Couldn't resolve default property of object apExcel.ActiveCell. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
            apExcel.ActiveCell.Offset(0, 1).Activate()
        Next
Posted
Comments
Kenneth Haugland 3-Aug-12 12:11pm    
Isnt that sotred in cm or Inces on the individual column depending on the culter of excel? SO you could just add them up and calculate the exact pixcels depending on you resolution?

1 solution

This might help you to determine how many pixels you have:
http://support.microsoft.com/kb/214123[^]
 
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