PC Review


Reply
Thread Tools Rate Thread

Data in different sheets

 
 
ankud1@yahoo.com
Guest
Posts: n/a
 
      27th May 2007
hello everyone

i am trying to write a macro but as m not much familiar how to mave
data between two or more sheet so would like sum suggestions and sub
procedures if possible

my querry is

i have data in two work sheets sheet1 & sheet2
in column ABC in both the sheets

i would like to "subtract" [sheet2] colC from
[sheet1] 'colC'

and and would like to move these subtracted values to sheet3 colC &
also like to move colA colB data of [sheet1]

to colA & colB of [sheet3]
like wwise for other columns DEF, GHI , JKL

i hope sumbody would help me out as its quite simple problem , plz let
me knw if i havnt frmaed my problem properly

Many Thanks in advance

 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      27th May 2007
try something like:
for i = 2 to sheets("sheet1").cells(rows.count,"c").end(xlup).row
sheets("sheet3").cells(i,"c").value= _
sheets("sheet1").cells(i,"c") - _
sheets("sheet2").cells(i,"c")
next i
sheets("sheet1").range("a1:b1").entirecolumn.copy _
sheets("sheet3").range("a1")
--
Don Guillett
SalesAid Software
(E-Mail Removed)
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hello everyone
>
> i am trying to write a macro but as m not much familiar how to mave
> data between two or more sheet so would like sum suggestions and sub
> procedures if possible
>
> my querry is
>
> i have data in two work sheets sheet1 & sheet2
> in column ABC in both the sheets
>
> i would like to "subtract" [sheet2] colC from
> [sheet1] 'colC'
>
> and and would like to move these subtracted values to sheet3 colC &
> also like to move colA colB data of [sheet1]
>
> to colA & colB of [sheet3]
> like wwise for other columns DEF, GHI , JKL
>
> i hope sumbody would help me out as its quite simple problem , plz let
> me knw if i havnt frmaed my problem properly
>
> Many Thanks in advance
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to update data from multiple sheets to one specific sheets Khawajaanwar Microsoft Excel Misc 4 15th Jan 2010 07:31 AM
Protect sheets not allowing entering of data in multiple sheets Suzette Microsoft Excel Discussion 0 25th Sep 2006 11:55 PM
Multiple Sheets (Need to create 500 individual sheets in one workbook, pulling DATA Amaxwell Microsoft Excel Worksheet Functions 4 17th Aug 2006 06:23 AM
In 3 active sheets in wkbk, determine& display the # of sheets that have data wrpalmer Microsoft Excel Misc 1 4th Nov 2005 02:01 PM
populating sheets based on data from parent sheets seve Microsoft Excel Misc 2 15th Jan 2005 09:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:21 AM.