+ Reply to Thread
Results 1 to 6 of 6

how to unlock an union of cells?

  1. #1
    Registered User
    Join Date
    07-09-2013
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2007
    Posts
    15

    how to unlock an union of cells?

    Hey there, I'am on an internship since a week and I have to build a template on VBA. I'ts the first time I code VBA and have still some issues. I search a lot of answers to questions I ask myself on the internet and this forum but I haven't found anything about unlocking a union of cells

    I have tried this:

    Please Login or Register  to view this content.
    But I get a 438 error (Object doesn't support this property or method)

    Can anyone help me out?

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: how to unlock an union of cells?

    You can't have
    Please Login or Register  to view this content.
    because when you set the union to a range variable it takes on the sheet it applies to at that stage. Therefore you need:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-09-2013
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: how to unlock an union of cells?

    Thanks! Seems like I have some problems too due to merged cells (just read merged cells are evil in vba... )

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: how to unlock an union of cells?

    Depends on how you want to deal with when you have merged cells but you cannot use vba to set the locked property of only one cell of a group of merged cells. This approach would adjust the range you select to include merged areas:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-09-2013
    Location
    Brussels, Belgium
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: how to unlock an union of cells?

    Thanks a lot! Works perfectly and now I get how to work with merged cells!

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: how to unlock an union of cells?

    No problem, as you may have found when doing your reading, the best method for dealing with merged cells and vba is don't use merged cells...

+ 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. **RE-Opened** Moving cells based on value and union other cells with it.
    By Steven8294 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2012, 08:25 AM
  2. What is an alternative to Union() when referring to multiple cells?
    By Dante_Blake in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-08-2012, 01:05 PM
  3. Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. Union/Range/Cells
    By KentÄ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2005, 08:06 AM

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