Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm new to this. Would appreciate advice on the following issue about a macro in VB: I want to loop through a folder and get all the file names in the folder. Then I will then set the cell values on "C" column in "Sheet2" to these file names. What's the correct syntax for setting the cell values? I'm looking for something like: Dim i As Integer i = 1 For Each fileName In fileNames i++; Sheet2.Cell(i,3).value = fileName; Next Clearly this doesn't work because the syntax is not correct. Any input? Many thanks! -Emily |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options | Excel Discussion (Misc queries) | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing | Excel Discussion (Misc queries) | |||
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 | Excel Worksheet Functions | |||
How to create/run "cell A equals Cell B put Cell C info in Cell D | Excel Discussion (Misc queries) | |||
Question: Cell formula or macro to write result of one cell to another cell | Excel Programming |