+ Reply to Thread
Results 1 to 2 of 2

HOW TO i HAVE OTHER CELLS GENERATE CONSECTUIVE MONTHS

  1. #1
    Cathy in Florida
    Guest

    HOW TO i HAVE OTHER CELLS GENERATE CONSECTUIVE MONTHS

    I should elaborate on my first questions. I know how to use the "fill
    handle". But what I want to do is protect most of my worksheet but type in a
    month e.g. "JULY" and have all the cells below that month automatically fill
    in the Next Month e.g. AUGUST, SEPTEMBER, OCTOBER etc. I do not want to have
    to unprotect my worksheet and use the fill handle each time.

    Thanks for your help,
    --
    Cathy
    Port Charlotte, FL

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    The sort of thing that you need could be like the following

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$A$1" Then
    ActiveSheet.Unprotect
    Select Case Target
    Case Is = "JULY"
    Target.Offset(1, 0) = "AUGUST"
    Target.Offset(2, 0) = "SEPTEMBER"
    Target.Offset(3, 0) = "OCTOBER"
    Case Is = "AUGUST"
    Target.Offset(1, 0) = "SEPTEMBER"
    Target.Offset(2, 0) = "OCTOBER"
    Target.Offset(3, 0) = "NOVEMBER"
    End Select
    ActiveSheet.Protect
    End If
    End Sub
    Martin

+ 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