Matt Young
New Member
- Joined
- Nov 2, 2018
- Messages
- 8
- Office Version
- 365
- Platform
- Windows
Afternoon all
This is only my second post so appologiese if this is inthe wrong place.
I am curently in the final stages of creating a spread sheet for documenting multiple bakup of multiple devces. as the spreadsheet is stored on a pc which is never going to be connected to the internet I need a way to force the user to input their details before either moving onto the next cell or saving the sheet I have tried VBA but I cannot get t to work. This iswhat I ave so far. Nte "FTD1"s my sheet name
Thanks in advance
This is only my second post so appologiese if this is inthe wrong place.
I am curently in the final stages of creating a spread sheet for documenting multiple bakup of multiple devces. as the spreadsheet is stored on a pc which is never going to be connected to the internet I need a way to force the user to input their details before either moving onto the next cell or saving the sheet I have tried VBA but I cannot get t to work. This iswhat I ave so far. Nte "FTD1"s my sheet name
Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Dim KeyCells As Range
Dim Check1 As Integer
Set KeyCells = Range("C3:C35")
If Not Application.Intersect(KeyCells, Range(Target.Address)) _Is Nothing Then
If Not Target.Value = "" Then
thisrow = Target.Row
firstcheck = ("F3:F35")
SecondCheck = ("E3:E35")
myvalue = ThisWorkbook.Worksheets("FTD1").Range("F3:F35").Value
myvalue2 = ThisWorkbook.Worksheets("FTD1").Range(SecondCheck).Value
If myvalue = "" Or myvalue2 = "" Then
MsgBox "Please enter initials and locationof backup"
End If
End If
End If
End Sub
Thanks in advance
Last edited by a moderator: