Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hey everybody
hoping someone can help with VBA syntax: I want to use the variable x as a row number reference, 'Insert Total calculation x = 0 Range("H1").Select 'go the end of the column Do While IsEmpty(ActiveCell.Offset(0, 0)) = False x = x + 1 ActiveCell.Offset(1, 0).Select Loop I have tried the two statements below but they seem to be illegal. ActiveCell.FormulaR1C1 "=SUM(R[ActiveCell.Offset(0,0)]C:R[ActiveCell.Offset(-&x,0)]C)" ActiveCell.FormulaR1C1 = "=SUM(R[-&x]C:R[-1]C)" Any help appreciated thank -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If activecell.column = variable then activecell,offset (0,1) | Excel Discussion (Misc queries) | |||
Can I use a variable to call up another sheet in Excel? | Excel Worksheet Functions | |||
Call a proc inside itself (HELP) | Excel Programming | |||
can I call a procedure using a variable | Excel Programming | |||
Using variable to call worksheets | Excel Programming |