PuntingJawa
Board Regular
- Joined
- Feb 25, 2021
- Messages
- 140
- Office Version
- 365
- 2019
- Platform
- Windows
I'm looking to add to my userform the function of adding a hyperlink. It looks like the image below.
I've been experimenting but haven't come up with anything functional at all. What I am attempting to do is when I enter in "Pack File Name" and enter the filepath to "Pack File Link" that it creates a hyperlink into "Range("N" & erow + 1)" with the pack file name. Per usual, I believe that I am overcomplicating in my attempts.
I've been experimenting but haven't come up with anything functional at all. What I am attempting to do is when I enter in "Pack File Name" and enter the filepath to "Pack File Link" that it creates a hyperlink into "Range("N" & erow + 1)" with the pack file name. Per usual, I believe that I am overcomplicating in my attempts.
VBA Code:
'Private Sub PackFileLink_Change()
'File location for hyperlink
'End Sub
'Private Sub PackFileName_Change()
'File name
'End Sub
Private Sub RecDate_Change() 'Date
End Sub
Private Sub RecNCR_Change()
RecNCR.Text = UCase(RecNCR.Text) 'NCR #
End Sub
Private Sub RecRMA_Change()
RecRMA.Text = UCase(RecRMA.Text) 'RMA #
End Sub
Private Sub RecSupplier_Change()
RecSupplier.Text = UCase(RecSupplier.Text) 'Supplier
End Sub
Private Sub RecProject_Change()
RecProject.Text = UCase(RecProject.Text) 'Project #
End Sub
Private Sub RecDescription_Change()
RecDescription.Text = UCase(RecDescription.Text) 'Item Description
End Sub
Private Sub RecPartNumber_Change()
RecPartNumber.Text = UCase(RecPartNumber.Text) 'Part #
End Sub
Private Sub RecSlipQTY_Change()
RecSlipQTY.Text = UCase(RecSlipQTY.Text) 'QTY on packing slip
End Sub
Private Sub RecCountQTY_Change()
RecCountQTY.Text = UCase(RecCountQTY.Text) 'Actual QTY count
End Sub
Private Sub RecPackNumber_Change()
RecPackNumber.Text = UCase(RecPackNumber.Text) 'Packing Slip #
End Sub
Private Sub RecPO_Change()
RecPO.Text = UCase(RecPO.Text) 'PO #
End Sub
Private Sub UserForm_Activate()
RecDate.Text = Format(Now(), "MM/DD/YY") 'Auto date for today
End Sub
Private Sub ReceivingSubmit_Click() 'Command button submit
erow = Sheets("Receiving").Range("a" & Rows.Count).End(xlUp).Row 'Submit on next open "A" row
Range("A" & erow + 1) = RecDate.Value 'Date
Range("B" & erow + 1) = RecSupplier.Value 'Supplier
Range("C" & erow + 1) = RecProject.Value 'Project #
Range("D" & erow + 1) = RecDescription.Value 'Decription
Range("E" & erow + 1) = RecPartNumber.Value 'Part #
Range("F" & erow + 1) = RecSlipQTY.Value 'Packing slip QTY
Range("G" & erow + 1) = RecCountQTY.Value 'Actual count QTY
Range("I" & erow + 1) = "PS " & RecPackNumber.Value 'Pack Slip #
Range("J" & erow + 1) = "PO " & RecPO.Value 'Purchase Order #
Range("K" & erow + 1) = RecNCR.Value 'NCR #
Range("L" & erow + 1) = RecRMA.Value 'RMA #
ThisWorkbook.Save
End Sub
Private Sub ReceivingClear_Click()
RecSupplier.Value = "" 'Supplier
RecProject.Value = "" 'Project #
RecDescription.Value = "" 'Decription
RecPartNumber.Value = "" 'Part #
RecSlipQTY.Value = "" 'Packing slip QTY
RecCountQTY.Value = "" 'Actual count QTY
RecPackNumber.Value = "" 'Pack Slip #
RecPO.Value = "" 'Purchase Order #
RecNCR.Value = "" 'NCR #
RecRMA.Value = "" 'RMA #
End Sub