+ Reply to Thread
Results 1 to 2 of 2

Cells to be mandatory fill have a formula in it

  1. #1
    Registered User
    Join Date
    06-27-2005
    Posts
    55

    Arrow Cells to be mandatory fill have a formula in it

    I have been thinking as to why 6 of the 44 cells won't accept the formula to be a mandatory fill, It's because there is a calculation formula in them.

    This is the formula I have used. Is there some way to make it include these 6 cells?


    Option Explicit
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)

    Dim myCell As Range
    Dim myRange As Range

    Set myRange = Nothing
    On Error Resume Next
    Set myRange = Me.Range("MustFill")
    On Error GoTo 0

    If myRange Is Nothing Then
    MsgBox "Please contact Brian Baker at 785 263 3350 ext 312 to fix the MustFill Range"
    Exit Sub
    End If

    For Each myCell In myRange.Cells
    If myCell.Address = myCell.MergeArea.Cells(1).Address Then
    If myCell.Value = "" Then
    Application.EnableEvents = False
    myCell.Select
    Application.EnableEvents = True
    Exit For
    End If
    End If
    Next myCell

    End Sub

    macro used for the 44 selected cells:

    Option Explicit
    Sub testme()
    With Worksheets("Product Quote") '.Range("T4,E5,M5,T7,E8,M8,d14,M14,D16,M16,D18,M18,m19,M20,m21,U21,N23,b25,K29,B30,L31,B33,I33,B35,B39,B43,B45,F47,K47,P47,S47,V47,Y47,B49,I52,I53,I54,I55,I56,I58,Q50,S55,S56,S57").Name _
    = "'" & .Name & "'!MustFill"
    End With
    End Sub


    Cells I52,I53,I54,I55,I56,I58 are the ones with the formulas.

    Thanks,

  2. #2
    Registered User
    Join Date
    06-27-2005
    Posts
    55
    Should I assume there is no way to do this since I haven't heard from anyone?

+ 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