PDA

View Full Version : Merging Cells Using Excel-VBA



vidya lakshm
09-09-2010, 04:46 AM
Hi,

Please refer the attachment .It has a Button in the sheet4.On the click of the button 3 sheets get created.



My Requirement is :

I need to merge the cells from Column F-J based on the no. of validations that a particular filetype(Column C) has.
Eg: In module1,

filetype doc has validation1-validation 5.So merge them and give the method name.
Similarly xls has validation1-Validation3.So merge them & give the method name as method1 in sheet1.


This needs to be repeated for Module1,2 & 3.


Kindly help me in figuring out how this can be done at the earliest.

Regards
Vidya

Bob Phillips
09-09-2010, 04:51 AM
This is a duplicate post and I have already answered your previous posting.

Simon Lloyd
09-09-2010, 04:51 AM
isn't this question based on the same one answered here! (http://www.vbaexpress.com/forum/showthread.php?t=33950) by xld?

Simon Lloyd
09-09-2010, 04:52 AM
This is a duplicate post and I have already answered your previous posting.Woah!, mind my toes :)

Bob Phillips
09-09-2010, 04:53 AM
Well, if you will stalk me ...

vidya lakshm
09-09-2010, 05:07 AM
Hi,
Yes. I tried to apply the same to my existing code.But it is not working.
I also get a runtime exception. Hence thought of posting the requiremnt very clearly.

Please help me in arriving at a solution for this problem.

Regards
Vidya

Simon Lloyd
09-09-2010, 06:36 AM
Well, if you will stalk me ...Damn camouflage isn't working too well then!

Bob Phillips
09-09-2010, 07:42 AM
That should not cause you to start a new thread, the old thread was perfectly fine for cointinuing the discussion, and it has context.

If anything, your requirement is less clear this time.

Simon Lloyd
09-09-2010, 09:44 AM
Thread closed!

Vidya, please use your original thread as indicated by xld.

Bob Phillips
09-09-2010, 03:49 PM
He has also taken to cross-posting now, at XtremeVBTalk. That tread has been moved, but he doesn't deserve any help.

Simon Lloyd
09-09-2010, 10:53 PM
Thanks he's getting a warning right now!