+ Reply to Thread
Results 1 to 4 of 4

MergeClass error when running macro

Hybrid View

  1. #1
    Registered User
    Join Date
    07-02-2011
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    28

    Question MergeClass error when running macro

    Hi, I'm at a fairly beginner level with VBA, I have been modifying a script, and as far as I know I have done nothing to the areas that affect any of the .MergeCells = True conditions. But they are all failing with the error 'Run-time error '1004' Unable to set the MergeCells property of the Range class. I have attached the script, could someone please take a look and see if they can spot how this is occurring. If you need the excel document that this relates to let me know and I'll attach it, just thought someone may spot the error in the code initially. Cheers
    Attached Files Attached Files
    Last edited by connieb; 01-14-2013 at 06:14 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,953

    Re: MergeClass error when running macro

    Attach a sample workbook. Posting a text file of your VBA project code does not help.

    When you are in Advanced reply, click on the paperclip to open the upload window.

    View Pic
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    07-02-2011
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: MergeClass error when running macro

    Workbook attached
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-02-2011
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: MergeClass error when running macro

    [Solved] Changed some things around and it worked. No idea how, but it's working and I'm happy

+ 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