I have to perform an import from an excel file to Access. The file
comes originally as a csv file. I have to delete some rows and
columns, then change the formatting of some columns. I am using
Windows 2000, Office 2000
I have been able to do everything but fill a column with zeros
Here is some of the code attached to a command button, I am using, it
works except I can't figure out how to fill down one column. In excel
it uses the Selection.FillDown command but I can't find that in the
Excel Reference in Access. Any other ideas.
with xlssheet
.Columns("E:E").Insert
.Range("E1").FormulaR1C1 = "Free Credit"
.Range("e2").FormulaR1C1 = "0"
this is where I will insert modified code.
end with
Essentially, I want to copy cell E2 to the last row in this column.
This is what I use in Excel that works, how can it be translated into
Access?? Selection doesn't seem to be an available option in Access
nor does ActiveCell appear.
range("A1").select
Selection.End(xlDown).Select
lastrow = ActiveCell.Row
Range("e2:e" & lastrow).Select
Selection.FillDown
Once this is done the file is then saved in an Excel format and closed
and then imported into Access.
Thanks for your help