Forum Discussion
PMHunt1955
Jun 24, 2019Brass Contributor
Create a pop-up form for entering current 'block' of cells
I have a block of cells that I wish to enter at various points through my spreadsheet. A couple of 'blocks' that I have already done 'manually' are as follows – Father: Christophori Johns...
- Jun 25, 2019
PMHunt1955 Hi Philip, to start with your last question: if you click the Reply button rather than the "Quick reply" button and select the Rich Text tab at the top of the small reply window, you should see a button </>. Click that to insert code.
To your other questions.
Best to put both the OnKey routine and the routine that opens the form in a normal module:
Sub ShowBaptismEntryForm() Enter_Baptism.Show End Sub Sub SetHotKey() Application.OnKey "+^b", "ShowBaptismEntryForm" End Sub Sub ResetHotKey() Application.OnKey "+^b" End SubAnd in ThisWorkbook:
Private Sub Workbook_BeforeClose(Cancel As Boolean) ResetHotKey End Sub Private Sub Workbook_Open() SetHotKey End Sub
JKPieterse
Jun 24, 2019Silver Contributor
PMHunt1955 I would advise you NOT to combine the constant text with the actual information in one single cell. It will make your life a whole lot easier if you create a simple table with these 5 headings:
First name Last Name Father Mother Baptism
and beneath this header row you enter one row of data per person. See attached.