Hi,
I have attached a workbook stating my requirement with expected result.
Any help is greatly appreciated.
Thanks.
SB.
Hi,
I have attached a workbook stating my requirement with expected result.
Any help is greatly appreciated.
Thanks.
SB.
Thanks
Babu.S
Try the below code
How to install your new code
- Copy the Excel VBA code
- Select the workbook in which you want to store the Excel VBA code
- Press Alt+F11 to open the Visual Basic Editor
- Choose Insert > Module
- Edit > Paste the macro into the module that appeared
- Close the VBEditor
- Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)
To run the Excel VBA code:
- Press Alt-F8 to open the macro list
- Select a macro in the list
- Click the Run button
![]()
Please Login or Register to view this content.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
Hi, :) Sixthsense :)
me again - not your day of coding to my opninion.
You define r but use i. What will happen if User Cancels the question about any of the ranges? Leave the user with a run time error and inside the VBE?
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
@ Holger,
Yes you are right and lol
First I thought to go for For Each approach and after that I thought to go for cell count approach but again forgot to change the r to i and the type of variable
Then regarding your Input range Cancel question I always won't put much more effort while writing the code to cover A-Z because I wait for the OP to turnon on the suggested code and do the further developments based on the OP's reply.
Yes seems to be not my day in coding the reason is I have more works and doing it by side by side and answering here too which may be the root cause for this distraction![]()
Thanks Sixthsense,
As per the code, user has to select the rows (child + parent) to combine them to one. i have n number of line items to combine, so is there a way that excel identifies the range of data (upto last updated row) and search row by row to combine child rows with parent rows leaving rows as it is which doesnt have child ?
Additional info: parent row always begins with the numeric.
Thanks
SB.
Last edited by sbabu16; 01-16-2014 at 03:18 AM.
That is how the suggested code was written![]()
thanks a lot, it works.
Thanks
SB.
Glad it helps you and thanks for the feedback and rep![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks