Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help with VBA

Hi

I have a spreadsheet with lots of columns & I want to add some up and put in
new columns.

At the moment I am using Find to locate the columns,which is working fine,
but then I need to add the formula to each row. So I know I want to add
cols P & col W and put in col X.
Range("X" & ActiveCell.Row & ":X" & iRow).Formula = col P + col w

Can anyone tell me how to do this ?

Thanks
Jill
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Help with VBA

Jill
Do you want to merely sum those 2 columns and put the answer in a third
column, or do you want to enter a formula in the third column to do the same
thing? What I'm getting at here is that if you are using VBA anyway, why
not just sum the 2 columns in VBA and be done with it? Then again, there
are times when you might want to put a formula there. HTH Otto
"Jill Thompson" wrote in message
...
Hi

I have a spreadsheet with lots of columns & I want to add some up and put
in
new columns.

At the moment I am using Find to locate the columns,which is working fine,
but then I need to add the formula to each row. So I know I want to add
cols P & col W and put in col X.
Range("X" & ActiveCell.Row & ":X" & iRow).Formula = col P + col w

Can anyone tell me how to do this ?

Thanks
Jill



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



All times are GMT +1. The time now is 05:19 PM.

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

About Us

"It's about Microsoft Excel"