Open folder in new instance

Try the Application.Getopenfilename This opens the dialogue for picking files. If you want to dispaly a specific folder, use this code before the Getopenfilename: chdir “c:\whatever\wherever” Are you sure you need a separate instance of Excel? It has many disadvantages, and only a few advantages.

Excel check len string separated by comma [closed]

@David Zemens idea.. this should work .Tested Sub test() Dim str As String Dim s() As String str = “15f,158,1669,187,15,156,47t” s = Split(str, “,”) For i = LBound(s) To UBound(s) If Len(s(i)) = 3 Then t = IIf(t = “”, s(i), t & “,” & s(i)) End If Next i MsgBox (t) End Sub

Simple VBA code to open cells one after the other

Why would you want to do this? VBA doesn’t have a keyword that represents entering into a cell. You can select the cell like this though: Sub DoNotRun() Dim rng as range For Each rng In ThisWorkbook.Worksheets(“Sheet1”).range(“A:A”) rng.Select Next rng End Sub If you really need to simulate a double click — Worksheets have a … Read more

VBA code required for Msg Box when two value equal in two cells

Try this: Private Sub Worksheet_Change(ByVal Target As Range) If Range(“A” & Target.Row) = Range(“B” & Target.Row) Then MsgBox “Buy – ” & Range(“E” & Target.Row) ElseIf Range(“A” & Target.Row) = Range(“C” & Target.Row) Then MsgBox “Sell – ” & Range(“E” & Target.Row) End If End Sub The key is using the Worksheet_Change event in the … Read more