+ Reply to Thread
Results 1 to 3 of 3

How to assign form to merged cells?

  1. #1
    Forum Contributor
    Join Date
    11-17-2009
    Location
    PA USA
    MS-Off Ver
    Excel 2000
    Posts
    184

    Question How to assign form to merged cells?

    I have a VBA form that I would like to assign to a cell, but it's a merged cell. When I do this, the form does not run. If I assign it to a single cell, it runs fine.

    Is there a trick to tell the macro that the target address is a merged cell?

    Excel 2000
    Last edited by proepert; 01-15-2010 at 11:22 AM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: How to assign form to merged cells?

    First: it is best to avoid the use of merged cells entirely. Use "Center Across Selection" instead.

    However, the fact the cells are merged should have no effect on running code, assuming you are using the worksheet_selection change event or a properly coded macro to identify the target range.

    Perhaps you should post your code / sample workbook so we can take a look.

    If cells A1:B1 are merged, this code will still execute and show the userform when the merged cells are selected - notice that only cell A1 is referenced below, but it could also be "A1:B1".

    Please Login or Register  to view this content.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Forum Contributor
    Join Date
    11-17-2009
    Location
    PA USA
    MS-Off Ver
    Excel 2000
    Posts
    184

    Re: How to assign form to merged cells?

    Thank you. I didn't know about "Center Across Selection", now I do.

+ 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