$$Excel-Macros$$ Query for Merging two excel sheets using Command Prompt

2012-05-14 Thread Rakesh Kumar Sharma
Hi,

Plz suggest me how i can merge two excel files data to single sheet using
command prompt.


-- 
Thanks  Regards,
Rakesh Kumar Sharma

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

--
To post to this group, send email to excel-macros@googlegroups.com


Re: $$Excel-Macros$$ Query for Merging two excel sheets using Command Prompt

2012-05-14 Thread Prajakt Pande
Dear Rakesh,

Can you provide a sample sheet.

Thanks  Regards,
Prajakt Pande
+971551388482
**



On Mon, May 14, 2012 at 10:19 AM, Rakesh Kumar Sharma 
rakeshks@gmail.com wrote:

 Hi,

 Plz suggest me how i can merge two excel files data to single sheet using
 command prompt.


 --
 Thanks  Regards,
 Rakesh Kumar Sharma




  --
 FORUM RULES (986+ members already BANNED for violation)

 1) Use concise, accurate thread titles. Poor thread titles, like Please
 Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
 will not get quick attention or may not be answered.

 2) Don't post a question in the thread of another member.

 3) Don't post questions regarding breaking or bypassing any security
 measure.

 4) Acknowledge the responses you receive, good or bad.

 5) Cross-promotion of, or links to, forums competitive to this forum in
 signatures are prohibited.

 NOTE : Don't ever post personal or confidential data in a workbook. Forum
 owners and members are not responsible for any loss.


 --
 To post to this group, send email to excel-macros@googlegroups.com


-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

--
To post to this group, send email to excel-macros@googlegroups.com


Re: $$Excel-Macros$$ Query for Merging two excel sheets using Command Prompt

2012-05-14 Thread Prajakt Pande
Dear Rakesh,

you can use following code

Sub CommandButton1()
Sheets(your sheet name).Select 'first sheet from you will copy the data

Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.Copy
Sheets(your sheet name).Select ' where you want to paste

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Sheets(your sheet name).Select 'second sheet from you will copy the data

Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.Copy

Range(a1).End(xlDown).Offset(1).Select

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

End Sub
regards,
Prajakt 
Skype :- prajaktpande

On Monday, May 14, 2012 10:46:03 AM UTC+4, Prajakt Pande wrote:

 Dear Rakesh,

 Can you provide a sample sheet.

 Thanks  Regards,
 Prajakt Pande
 +971551388482
 **



 On Mon, May 14, 2012 at 10:19 AM, Rakesh Kumar Sharma 
 rakeshks@gmail.com wrote:

 Hi,

 Plz suggest me how i can merge two excel files data to single sheet using 
 command prompt.


 -- 
 Thanks  Regards,
 Rakesh Kumar Sharma




  -- 
 FORUM RULES (986+ members already BANNED for violation)
  
 1) Use concise, accurate thread titles. Poor thread titles, like Please 
 Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice 
 will not get quick attention or may not be answered.
  
 2) Don't post a question in the thread of another member.
  
 3) Don't post questions regarding breaking or bypassing any security 
 measure.
  
 4) Acknowledge the responses you receive, good or bad.
  
 5) Cross-promotion of, or links to, forums competitive to this forum in 
 signatures are prohibited. 
  
 NOTE : Don't ever post personal or confidential data in a workbook. Forum 
 owners and members are not responsible for any loss.
  

 --
 To post to this group, send email to excel-macros@googlegroups.com




-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

--
To post to this group, send email to excel-macros@googlegroups.com


RE: $$Excel-Macros$$ Query for Merging two excel sheets using Command Prompt

2012-05-14 Thread Rajan_Verma
If all sheets have data in same format 

 

Sub CompileWOrksheets()

Dim wksSheet As Worksheet

With ThisWorkbook

.Worksheets.Add.Name = Compiled

For Each wksSheet In .Worksheets

If wksSheet.Name  Compiled Then

wksSheet.UsedRange.Copy .Worksheets(Compiled).Range(A 
.Worksheets(Compiled).Range(A  Rows.Count).End(xlUp).Row + 1)

End If

Next wksSheet

End With

End Sub

 

 

Regards

Rajan verma

+91 7838100659 [IM-Gtalk]

 

From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com]
On Behalf Of Prajakt Pande
Sent: 14 May 2012 12:32
To: excel-macros@googlegroups.com
Subject: Re: $$Excel-Macros$$ Query for Merging two excel sheets using
Command Prompt

 

Dear Rakesh,

you can use following code

Sub CommandButton1()
Sheets(your sheet name).Select 'first sheet from you will copy the data

Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.Copy
Sheets(your sheet name).Select ' where you want to paste

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

Sheets(your sheet name).Select 'second sheet from you will copy the data

Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.Copy

Range(a1).End(xlDown).Offset(1).Select

Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

End Sub
regards,
Prajakt 
Skype :- prajaktpande

On Monday, May 14, 2012 10:46:03 AM UTC+4, Prajakt Pande wrote:

Dear Rakesh,

Can you provide a sample sheet.



Thanks  Regards,
Prajakt Pande
+971551388482





On Mon, May 14, 2012 at 10:19 AM, Rakesh Kumar Sharma
rakeshks@gmail.com wrote:

Hi,

Plz suggest me how i can merge two excel files data to single sheet using
command prompt.


-- 
Thanks  Regards,
Rakesh Kumar Sharma





-- 
FORUM RULES (986+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will
not get quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security
measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
 

--
To post to this group, send email to excel-macros@googlegroups.com

 

-- 
FORUM RULES (986+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will
not get quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security
measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited. 
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
 

--
To post to this group, send email to excel-macros@googlegroups.com

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

--
To post to this group, send email to excel-macros@googlegroups.com