Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
dim mydb as database
dim myrec as recordset
dim xl_book as excel.application
dim xl_sheet as worksheet
dim intR, IntC 'these will move through the sheet
dim intB ' number of rows of data to import ' note u might want a function to work this out
set mydb = currentdb ()
set myrec = mydb.openrecordset("tbl_whatever")
set xl_book = getobject("path of excel book")
set xl_sheet = xlbook.worksheets("Whatevername of sheet")
intR = 2 'first row where the data appears
intC = 2 ' first column of where data appears
intB = 22 we have 22 rows for arguments sake
Do until intR = IntB
with myrec
.add
![field1] = xl_sheet.cells(intR,intC)
![field2] = xl_sheet.cells(intR,intc + 1)
![field3] = xl_sheet.cells(intR,intC + 2)
.update
end with
intr = intr + 1
loop