Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to add the formula in empty row.
Thanks... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I think you need to provide much more detail. You can add a
formula with code like Range("A1").Formula = "=NOW()" -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Asu" wrote in message ... I am trying to add the formula in empty row. Thanks... |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi again:)
Thanks for the quick response. I am beginner for vba. I took some lessons but it was not enough. The problem is ; I have got two worksheets. The second one has got some data. I need to sum b+c+d columns and put the this value in first worksheet's f column. it is okey I can do it. But the data must come on the first empty row in f column. If you could help me i wold be appreciated. "Chip Pearson" wrote: I think you need to provide much more detail. You can add a formula with code like Range("A1").Formula = "=NOW()" -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Asu" wrote in message ... I am trying to add the formula in empty row. Thanks... |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Perhap the following will help get you started:
Option Explicit Sub SumSheet2() Dim Sum1 As Long Dim Sum2 As Long Dim Sum3 As Long Dim NextCell As Range Set NextCell = Sheets("Sheet1").Range("F65536").End(xlUp).Offset( 1, 0) Sum1 = Application.Sum(Sheets("Sheet2").Range("B:B")) Sum2 = Application.Sum(Sheets("Sheet2").Range("C:C")) Sum3 = Application.Sum(Sheets("Sheet2").Range("D:D")) NextCell = Sum1 + Sum2 + Sum3 Set NextCell = Nothing End Sub "Asu" wrote: Hi again:) Thanks for the quick response. I am beginner for vba. I took some lessons but it was not enough. The problem is ; I have got two worksheets. The second one has got some data. I need to sum b+c+d columns and put the this value in first worksheet's f column. it is okey I can do it. But the data must come on the first empty row in f column. If you could help me i wold be appreciated. "Chip Pearson" wrote: I think you need to provide much more detail. You can add a formula with code like Range("A1").Formula = "=NOW()" -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Asu" wrote in message ... I am trying to add the formula in empty row. Thanks... |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Asu,
SInce you have multiple (completely different) answers and have not indicated any of them answered your question, possibly by adding you mean inserting and you might look at http://www.mvps.org/dmcritchie/excel/insrtrow.htm to help you continue formulas down from previous rows. -- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
adding rows, pasting values then empty sheet | Excel Worksheet Functions | |||
if not empty, not a formula? | Excel Discussion (Misc queries) | |||
Is there a way to go to next empty cell in a formula | Excel Worksheet Functions | |||
adding row when user reaches the last available empty row | Excel Programming | |||
XL VBA adding new worksheet if current worksheet is not empty | Excel Programming |