Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
VB
Private Sub InitForm()

        Call LoadHAlign()
        Call LoadVAlign()

        Call LoadSpreadsheet("l")
        'UPGRADE_WARNING: Couldn't resolve default property of object apExcel.Worksheets. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
        apExcel.Worksheets("Front").Activate()
        'UPGRADE_WARNING: Couldn't resolve default property of object apExcel.ActiveSheet. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
        apExcel.ActiveSheet.Range("$A$1").Activate()
        Me.Show()

    End Sub

Not selecting the cell what is the equivalent for .Net any help appreciate..
Posted

1 solution

Try

apExcel.ActiveSheet.Cells(1,1).Select()


instead of
apExcel.ActiveSheet.Range("$A$1").Activate()
 
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