How to I select a row of cells in excell using a loop. I want the loop to go through each cell, copy its content(path to a file) and then I want that path to be inserted into a variable that I pass onto InsertFile command.
For Each Cell In currDataSheet.Cells.Range("B2:B4"
Filename = currDataSheet.Select(Cell)
appWord.Selection.InsertFile Filename, Range:="", _
ConfirmConversions:=False, Link:=False, Attachment:=False
Next Cell
Something like that, except that it works. I keep getting type mismatch error.
For Each Cell In currDataSheet.Cells.Range("B2:B4"
Filename = currDataSheet.Select(Cell)
appWord.Selection.InsertFile Filename, Range:="", _
ConfirmConversions:=False, Link:=False, Attachment:=False
Next Cell
Something like that, except that it works. I keep getting type mismatch error.