Forum Discussion

rakeshtalwar's avatar
rakeshtalwar
Copper Contributor
Feb 24, 2020
Solved

Visit Planner

Hello People, I am trying to make an visit planner. I have 60 clients whom I have to meet after every 6 days. So, i have created a list of my customers and have created dates column for next th...
  • ExcelExciting's avatar
    Feb 24, 2020

    Hi rakeshtalwar 

     

    Please see the attached file, when you double click on the cell It will tick mark after 6 days. One slight change I have made instead of entering the tick icon I have replace the value with "a" and the font remains the same "Webdings"

     

    Below code can be used in the worksheet module:

     

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    'Coded By : Faraz Shaikh - www.ExcelExciting.com | 24.02.2020
    Dim rowNo, colNo As Integer
        rowNo = ActiveCell.Row
        colNo = ActiveCell.Column
        i = ActiveCell.Value
        
       Do Until IsEmpty(Cells(2, colNo))
        Cells(rowNo, colNo).Select
            ActiveCell.Value = i
            colNo = colNo + 6
       Loop
    
        MsgBox "Task Completed", vbInformation, "Faraz Shaikh | ExcelExciting.com"
        
    End Sub

     

     

     

    Hope this resolves your query & don't forget mark as Best Response if your query is resolved.

     

    Regards, Faraz Shaikh | MCT, MIE, MOS Master, Excel Expert | www.ExcelExciting.com