Sub ReadNumericValueAndList() Dim fs As Object, folder As Object, file As Object Dim…
Jump to turn (6)
- 1Sub ReadNumericValueAndList() Dim fs As Object, folder As Object, file As Object
- 2for example in txt we have Placed:100 i want only 100 to be copied and nothing e
- 3it may contain any number , not only 100 this was just an example , it may be 36
- 4code is not god, in first file i have Placed:100 it shows me 58
- 5also copy data in destination starting with row2 in column g
- 6Private Sub CommandButton2Click() Dim fs As Object, folder As Object, file As Ob
- User
Sub ReadNumericValueAndList()
codeDim fs As Object, folder As Object, file As ObjectDim wbPath As String, ws As Worksheet Dim i As Integer
' Set the worksheet object to the active sheet Set ws = ThisWorkbook.Sheets("Sheet1")
' Initialize the FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject")
' Get the folder where this workbook is saved Set folder = fs.GetFolder(ThisWorkbook.Path)
' Initialize row index for Sheet1 column G i = 4
code