+ Reply to Thread
Results 1 to 6 of 6

merge and center cells using macro

  1. #1
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    merge and center cells using macro

    I have this code:
    Please Login or Register  to view this content.
    I need to modify the code so the macro will also " merge and center" the cell with text and the next cell from row 3.
    Please open the attached file.
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: merge and center cells using macro

    The best way to get code like this is to use the macro recorder, then edit the generated code. See

    http://www.excel-it.com/record_macro.htm

    I wouldn't actually recommened merging cells though
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    Re: merge and center cells using macro

    Quote Originally Posted by royUK View Post
    The best way to get code like this is to use the macro recorder, then edit the generated code. See

    http://www.excel-it.com/record_macro.htm

    I wouldn't actually recommened merging cells though
    I already tried with macro recorder but I had no good result.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: merge and center cells using macro

    What result did you get?

    Do you actually mean to merge the cells, or center across selection?

  5. #5
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    Re: merge and center cells using macro

    Quote Originally Posted by royUK View Post
    What result did you get?

    Do you actually mean to merge the cells, or center across selection?
    This was my result but I wasn't able to adapt it to my code.
    Please Login or Register  to view this content.
    I need to merge the cells, two by two ...

    I tried somethig like this without result:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor iscar_marius's Avatar
    Join Date
    12-19-2008
    Location
    germany
    MS-Off Ver
    2000 and 2003
    Posts
    221

    Re: merge and center cells using macro

    I don't know if I was very clear ... please tell me and I will try to be more explicit

+ 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