Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default automatically copy selected data from one excel to other excel

hi,

Greetings..

I have 3 Excel file with more than 700 rows and columns.I have to select
some data and want to make some calculations with that and display the
consolidated resultants in the new excel file.

I have no clear path..Kindly guide me...



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default automatically copy selected data from one excel to other excel

use th efollowing code to copy the selected data to a new workbook...

dim wb as workbook
dim ws as worksheet
dim source as range
set source = selection
set wb = workbooks.Add
set ws = wb.activesheet
with ws.Range("A1").resize(source.rows.count,source.col umns.count)
.Value = Source.Value
end with

since you have given no indication of what calculations are required, the
best method to begin learning for yourself would be to turn on the
macro-recorder, add whatever formula you need, stop the recorder and view the
code.
Code generated this way is not usually very flexible, but once you get the
idea, you can often easily adapt it.

"raja" wrote:

hi,

Greetings..

I have 3 Excel file with more than 700 rows and columns.I have to select
some data and want to make some calculations with that and display the
consolidated resultants in the new excel file.

I have no clear path..Kindly guide me...



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default automatically copy selected data from one excel to other exce

thank you for ur guidance..

it worked well...
but i couldnt understand the code.. what should i do if i understand the
code..(tips pls)if i want to make some calculations where should i do?
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
Automatically copy previous cells in data entry in Excel Sam Excel Discussion (Misc queries) 1 August 20th 08 10:01 PM
Automatically copy formulas in selected row into a new row? wolfv Excel Discussion (Misc queries) 3 February 3rd 08 08:35 PM
Automatically copy selected information from one worksheet to anot SM1 Excel Discussion (Misc queries) 1 December 21st 06 01:02 AM
Excel will not add cells automatically together when selected? Dom23 Excel Worksheet Functions 2 July 12th 05 05:10 PM
Cells are being selected automatically in Excel Ian Excel Discussion (Misc queries) 2 February 26th 05 11:31 AM


All times are GMT +1. The time now is 04:18 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"