paulfitz54
New Member
- Joined
- Dec 30, 2014
- Messages
- 32
- Office Version
- 2019
- Platform
- MacOS
Hi,
I have a VBA code that copies account information from a receipt worksheet and appends it to a Receipt list worksheet. This code works perfectly.
I also have 9 control check boxes in the receipt worksheet that can have any number of boxes ticked for each receipt.
My question is, can I capture the checkbox information along with account information and append it to the Receipt List worksheet?
Copy of the VBA code:
Thanks for all your help in the past and the future
Paul
I have a VBA code that copies account information from a receipt worksheet and appends it to a Receipt list worksheet. This code works perfectly.
I also have 9 control check boxes in the receipt worksheet that can have any number of boxes ticked for each receipt.
My question is, can I capture the checkbox information along with account information and append it to the Receipt List worksheet?
Copy of the VBA code:
VBA Code:
Sub PostReceipt()
'Post Receipt details into Receipt List
ActiveSheet.Unprotect Password:="ssap"
Application.ScreenUpdating = False
Sheets("Receipt").Select
Rows("32:34").Select
Selection.EntireRow.Hidden = False
ActiveSheet.Range("B33:E33").Select
Selection.Copy
Sheets("Receipt List").Select
ActiveSheet.Range("a2000").End(xlUp).Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("A7").Select
Sheets("Receipt").Select
Rows("32:34").Select
Selection.EntireRow.Hidden = True
Range("F6").Select
ActiveCell.FormulaR1C1 = "Select Name"
Range("E8:F8").Select
ActiveCell.FormulaR1C1 = "Enter Date"
Range("E12:F12").Select
ActiveCell.FormulaR1C1 = "Enter Amount"
Range("F6").Select
Range("F10").Value = Range("F10").Value + 1
Range("F6").Select
ActiveSheet.Protect Password:="ssap"
End Sub
Thanks for all your help in the past and the future
Paul