Hi,
I am writing out a sum of cells, in an Excel spread sheet, from my VBA in Access. It will go through a loop first summing C4:C11 and then D4
11 and so on. Each time this will be different, the program figures out how far it will go. In any case I need to do something like this:
Range(Chr$(a) & Val(b)).Select
ActiveCell.Formula = "=SUM('" & Chr$(a) & "' & '" & Val(s) & "' & : & '" & Chr$(a) & "' & '" & Val(t) & "')"
Which would be the equivalent to ActiveCell.Formula = "=SUM(C4:C11). Naturally, each time the variables are incremented. Any ideas on how I can get this to work I would appreciate.
Thank You
ITM
I am writing out a sum of cells, in an Excel spread sheet, from my VBA in Access. It will go through a loop first summing C4:C11 and then D4
Range(Chr$(a) & Val(b)).Select
ActiveCell.Formula = "=SUM('" & Chr$(a) & "' & '" & Val(s) & "' & : & '" & Chr$(a) & "' & '" & Val(t) & "')"
Which would be the equivalent to ActiveCell.Formula = "=SUM(C4:C11). Naturally, each time the variables are incremented. Any ideas on how I can get this to work I would appreciate.
Thank You
ITM