+ Reply to Thread
Results 1 to 3 of 3

Combine code in VBA

  1. #1
    Registered User
    Join Date
    02-18-2013
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    17

    Combine code in VBA

    Here's my code, how can I simplify it? I'm checking the values in a range of 4 cells against a single cell, then unprotecting two adjacent cells on each row if the value is true.

    Please Login or Register  to view this content.
    Last edited by clifton1230; 03-16-2013 at 12:20 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Combine code in VBA

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    02-18-2013
    Location
    Dallas
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Combine code in VBA

    Perfect, changed "Offset" to one because the first cell was in the next column from my test cell.

    Brilliant - thanks!

+ 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