Sub Button1Click()
Dim temp As Worksheet
Set temp = ThisWorkbook.Worksheets("Input")
Dim tempAct As String
Dim tempCC As String
Dim tempRan As String
tempAct = Range("B1").Value
tempCC = Range("B2").Value
tempRan = Range("B3").Value
If temp.Range("B1:B3").Value = "" Then
MsgBox ("Blank Input!")
ElseIf temp.Range("B1:B3").Value <> "" Then
temp.Range("C1").Value = tempAct
temp.Range("C2").Value = tempCC
tmep.Range("C3").Value = tempRan
End If
End Sub
I am trying to make a simple code when pressing this button, it will simply copy the cell value onto the other cell, and also any idea how to put the input result in the listbox?
I am getting Type Missmatch error when generating this macro.