+ Reply to Thread
Results 1 to 5 of 5

Merging Cells Using Excel-VBA

  1. #1
    Registered User
    Join Date
    08-31-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    11

    Post Merging Cells Using Excel-VBA

    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
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Merging Cells Using Excel-VBA

    It's a bad idea to merge cells as you have been told before.
    Why are you so set on merging cells?

  3. #3
    Registered User
    Join Date
    08-31-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Merging Cells Using Excel-VBA

    I do understand that merging may not be a good idea.

    But the requirement is like that. So...

    Also, I am getting a runtime exception when I execute the code.
    Request you to help me out.

    Regards
    Vidya

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Merging Cells Using Excel-VBA

    Request all you want......

    Try using the macro recorder.

  5. #5
    Registered User
    Join Date
    08-23-2012
    Location
    Everett, Washington
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Merging Cells Using Excel-VBA

    What a jerk!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1