+ Reply to Thread
Results 1 to 3 of 3

VBA CODE to Unmerge multiple cells on entire Sheets

  1. #1
    Registered User
    Join Date
    08-18-2008
    Location
    Los Angeles
    Posts
    44

    VBA CODE to Unmerge multiple cells on entire Sheets

    Hi ! I am new to writing VBA Codes, im looking for a vba code to Unmerge an entire sheet. I have a huge sheet that contains a lot of merge cells and II need to unmerge all those cells.
    Very much appreciative if anyone can help me find a code for that problem.

  2. #2
    Forum Contributor
    Join Date
    01-02-2007
    Location
    Australia NSW
    MS-Off Ver
    2013
    Posts
    494

    Re: VBA CODE to Unmerge multiple cells on entire Sheets

    Try using the recorder, when selecting the entire sheet(header point between A & 1) then un-merge cells.

  3. #3
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: VBA CODE to Unmerge multiple cells on entire Sheets

    teachMeExcel,

    Please TEST this FIRST in a COPY of your workbook (always make a backup copy before trying new code, you never know what you might lose).

    1. Copy the below code
    2. Open your NEW workbook
    3. Press the keys ALT + F11 to open the Visual Basic Editor
    4. Press the keys ALT + I to activate the Insert menu
    5. Press M to insert a Standard Module
    6. Where the cursor is flashing, paste the code
    7. Press the keys ALT + Q to exit the Editor, and return to Excel
    8. To run the macro from Excel press ALT + F8 to display the Run Macro Dialog. Double Click the macro's name to Run it.

    Please Login or Register  to view this content.
    Before you use the macro with Excel 2007 or newer, save your workbook, Save As, a macro enabled workbook with the file extension .xlsm

    Then run the UnMergeAllCells macro.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] I need to search for a word on multiple sheets and copy the entire row to a new sheet
    By jkm750 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2013, 12:13 AM
  2. VBA code to Copy entire row to new sheet multiple times
    By wazimu13 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 05-12-2013, 09:10 AM
  3. VBA code to search all merged cells and then unmerge them filling them with values
    By Blasphemer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-17-2012, 09:37 AM
  4. How to us vba to "unmerge" all cell on an entire worksheet
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2011, 01:29 PM
  5. Linking entire sheets between books--not cells
    By gsquared in forum Excel General
    Replies: 7
    Last Post: 12-12-2008, 02:06 PM

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