This is the answer ( I had to answer my own question) Sub CopySheet_NewWorkbook() Sheets(Array("Sheet1", "Shhet2")).Copy End Sub
Please check the following link: http://vbaf1.com/q/a/compile-all-the-3-excel-sheet-data-in-one-sheet-in-new-excel-file/ Here is the sample project: http://analysistabs.com/vba-code/excel-projects/consolidate-data-from-multiple-worksheets-row/ Also, please check the other topic answered...
I think you should add a line to sort the first column first before you group. Try sorting the column...
Thanks for the reply and ur time :) I found the answer to this :)
Hi Amoljagdale, Please try to answer our forum questions. You will be having different type of questions. Its very good...
Hi, Please share your sample workbook at email@example.com Thanks!
let us know the Specific sentence.
HI, Can you share your VBA code? l Thanks!
I have two columns A & B with numbers in it. I have to deduct the number in Column A with the number from Column B. The deduction is to be done in Column A.I want column A to display the calculation with the amounts from the respective cells. For e.g If Column A1 has 100 and B1 50, then A1 cell should show the formula” =100-50″.
I have to do this calculation in a specific range only (e.g A10 to A20).
Is it possible?
Hi, The below macro will check each cell in the selection, and prints the calculation if the cell is in Column A.
Dim myVal As Range
For Each c In Selection
If c.Column = 1 Then ' check if the column is 1 (i.e A)
c.Formula = "=" & c.Value & "-" & c.Offset(0, 1).Value
Its not possible as per my knowledge. You should have data in cell (B1) and cell (C1) . Now you can subtract value at cell A1 like(=B1-C1).
Here is the screen shot for your reference.
Well, I thought as the question was framed under “VBA” I don’t have to mention it and that made the difference.
Please find the screen shot.
What I wanted to know is , can we edit the macro in such a way that it picks up the value from column B and subtracts it from the value in column A. The formula bar should show the calculation with the values in column A and B displayed. The cell will show the result.