#1
|
|||
|
|||
Developer Functions
Hi, I've attached a file I was working on. Can someone help me with a problem I am trying to solve? If you will look at the document, I have SBAR rows for each area. What I am trying to do is on row A to have an option to insert another set of SBAR rows. I'd like this to be an option to whoever is typing on the document, if he/she doesn't want to add the extra SBAR it wouldn't be there. But there would be an option to insert an extra set under row A. Is that even possible?? |
#2
|
||||
|
||||
Yes, that's quite possible, but you'll need to use a macro, which means saving the file in the docm format. Try the attached, which has all the code in place. You'll be prompted as to whether to add a new set whenever you click in the last content control in the table.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thanks for that. But it looked just the same as the original one only saved as macro enabled. Which part does the user click on? Sorry really new to this and literally clueless. I've edited some rows it should look like this.
|
#4
|
||||
|
||||
You click on the last content control in the table (i.e. the one below the 'Total patients' heading).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Thanks! That was awesome! But is there a way to insert a set of SBAR rows in a specific "row A" of one area? For example, I want to insert a full set inside the "row A" of CTU. Is that possible? to place a command button on all the cells to the left of 'A rows' to insert a full set of SBAR rows inside that cell?
|
#6
|
||||
|
||||
Yes, but that's a whole lot more complicated with your table structure. It would be much easier if you had a separate physical table for each SBAR group, though, in which case the content control for each such group could be used to trigger the prompt.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
Thanks
Thanks sooo much! Do you mean like this attached file? If anyone could help me coding this, it would be great! As you could tell, I'm in healthcare and is clueless with these kinds of stuff. Thanks again for your input!!!
|
#8
|
||||
|
||||
Try the attached. If you want to see what drives the process, press Alt-F11 and look in the document's 'This Document' code module. Press Alt-F11 when you're done. The code is already written so that, if you apply editing restrictions to the document (so as to guard against unauthorised changes to the form) and password-protect them, all you'll need to do is add the password to the code.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#9
|
|||
|
|||
You are amazing, Paul!!!! Thank you very much! I know it might be too much to ask, is there a way that the columns to the left (Area/Patients) do not double up when the user choose Yes? Thanks!
|
#10
|
|||
|
|||
Quote:
|
#11
|
||||
|
||||
Try the attached. I've re-arranged the tables slightly to make the row additions simpler.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#12
|
|||
|
|||
Thanks!
You're a legend Paul! Problem solved!!!!
|
#13
|
|||
|
|||
Quote:
I just wanted the new BAR sets to be partitioned from the BAR set above it. So just a top border above the B row. Thanks in advance! and pardon my ignorance. |
#14
|
||||
|
||||
Try the attached. I had to delete the logo to keep within the board's upload size limit.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Content control in developer questions | exlex | Word | 4 | 02-19-2015 07:43 AM |
Microsoft Developer Question | smattern | Word | 2 | 01-22-2015 12:22 AM |
Developer Controls | darrenbilly | Word | 2 | 12-09-2014 07:50 AM |
Forms Data Using Developer Tab | scbarton | PowerPoint | 1 | 03-15-2012 09:24 AM |
Developer Tab not showing | merago | Office | 1 | 11-16-2010 01:45 PM |