Convert to VB.NET

shmidt

New Member
Joined
Apr 9, 2016
Messages
18
Can someone please help me to convert the following in bold (below is Excel VBA, need vb.net):

1.
Code:
Dim shtAry() As Variant    shtAry() = [B]Array[/B]("SawLineDoors", "SawLineRods", "SawLineGlassStop", "SawLineSwinger", "SawLineFrames", "Frames")
    Sheets([B]shtAry())[/B].Select


2,
Code:
 xlApp.Worksheets(sht).Range("A2:H" & xlRows).Sort(key1:=xlApp.Range("E2"), order1:=Microsoft.Office.Interop.Excel.XlSortOrder.xlAscending, Key2:=xlApp.Range("H2"), Order2:=Microsoft.Office.Interop.Excel.XlSortOrder.xlAscending, [B]HEADER:=xlNo[/B], OrderCustom:=1,[B] Orientation:=xlTopToBottom)[/B]



Thank you.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,225,767
Messages
6,186,907
Members
453,386
Latest member
testmaster

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top