Microsoft
Software
Hardware
Network
Question : Need Access VBA help to Use from Access
I have a query I am placing into an Excel wooksheet. I also want to populate 50 cells with the following formula:
xlsheet.Range("h21").formu
la = "(F21-L21)*0.875"
I need to copy this formula to 50 rows and instead of having 50 lines of code for each row, is there a way from MS access to copy that fomula over a range and also up the cell number to match the row?
I know there is a way to do it in Excel with:
Selection.AutoFill Destination:=
But I late bound Excel so to be compatible and it errors on me when I try doing it that way.. Any help is appreciated. Thanks,
Josh
Answer : Need Access VBA help to Use from Access
you can try to do somethingn like this
just change it to match your requirements
dim i as integer
for i = 21 to 71
xlsheet.Range("h" &1).formula = "(F" & i & "-L" & i & ")*0.875"
next
Random Solutions
ESXi 4 and Dell MD3000 - getting them to work together
Permissions of file server
Java Client Applet - Message from server to ALL clients
Virtualization Training
Have Access report only show Amount data if no PayAmt data
Excel 2007 copy/paste format
Adjust the tabel height in an ASP.NET page - Review
Need to connect two Windows workstations to one scanner using TWAIN...
Sys.WebForms.PageRequestMa
nagerServe
rErrorExce
ption: Index was out of range. Must be non-negative and less than the size of the collection.
PHP security using php5.ini