Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ASU ASU is offline
external usenet poster
 
Posts: 63
Default adding formula in empty row

I am trying to add the formula in empty row.
Thanks...
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default adding formula in empty row

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   Report Post  
Posted to microsoft.public.excel.programming
ASU ASU is offline
external usenet poster
 
Posts: 63
Default adding formula in empty row

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default adding formula in empty row

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default adding formula in empty row

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding rows, pasting values then empty sheet misscharliebrown Excel Worksheet Functions 2 October 30th 08 03:07 AM
if not empty, not a formula? nastech Excel Discussion (Misc queries) 2 July 10th 07 06:06 PM
Is there a way to go to next empty cell in a formula Hopeful Exel User Excel Worksheet Functions 0 April 19th 05 10:53 PM
adding row when user reaches the last available empty row Stacie Fugate Excel Programming 19 January 27th 05 07:44 PM
XL VBA adding new worksheet if current worksheet is not empty Lance Hoffmeyer Excel Programming 4 August 27th 04 07:15 AM


All times are GMT +1. The time now is 10:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"