Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2015, 12:08 AM
emmanpelayo emmanpelayo is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 64bit
Novice
Developer Functions
 
Join Date: Jul 2015
Posts: 22
emmanpelayo is on a distinguished road
Default 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??
Attached Files
File Type: docx DM.docx (32.4 KB, 7 views)
Reply With Quote
  #2  
Old 07-11-2015, 03:12 AM
macropod's Avatar
macropod macropod is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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.
Attached Files
File Type: docm DM.docm (61.4 KB, 17 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 07-11-2015, 03:25 AM
emmanpelayo emmanpelayo is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 64bit
Novice
Developer Functions
 
Join Date: Jul 2015
Posts: 22
emmanpelayo is on a distinguished road
Default

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.
Attached Files
File Type: docm DM.docm (54.9 KB, 9 views)
Reply With Quote
  #4  
Old 07-11-2015, 04:12 AM
macropod's Avatar
macropod macropod is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #5  
Old 07-11-2015, 04:20 AM
emmanpelayo emmanpelayo is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 64bit
Novice
Developer Functions
 
Join Date: Jul 2015
Posts: 22
emmanpelayo is on a distinguished road
Default

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?
Reply With Quote
  #6  
Old 07-11-2015, 03:05 PM
macropod's Avatar
macropod macropod is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by emmanpelayo View Post
is there a way to insert a set of SBAR rows in a specific "row A" of one area?
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]
Reply With Quote
  #7  
Old 07-12-2015, 01:21 AM
emmanpelayo emmanpelayo is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 64bit
Novice
Developer Functions
 
Join Date: Jul 2015
Posts: 22
emmanpelayo is on a distinguished road
Default 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!!!
Attached Files
File Type: docm DM.docm (29.1 KB, 8 views)
Reply With Quote
  #8  
Old 07-12-2015, 03:45 AM
macropod's Avatar
macropod macropod is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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.
Attached Files
File Type: docm DM-2.docm (57.3 KB, 16 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 07-12-2015, 03:57 AM
emmanpelayo emmanpelayo is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 64bit
Novice
Developer Functions
 
Join Date: Jul 2015
Posts: 22
emmanpelayo is on a distinguished road
Default

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!
Reply With Quote
  #10  
Old 07-12-2015, 03:58 AM
emmanpelayo emmanpelayo is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 64bit
Novice
Developer Functions
 
Join Date: Jul 2015
Posts: 22
emmanpelayo is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
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.
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!
Reply With Quote
  #11  
Old 07-12-2015, 04:52 PM
macropod's Avatar
macropod macropod is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try the attached. I've re-arranged the tables slightly to make the row additions simpler.
Attached Files
File Type: docm DM-3.docm (59.5 KB, 15 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #12  
Old 07-13-2015, 02:39 AM
emmanpelayo emmanpelayo is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 64bit
Novice
Developer Functions
 
Join Date: Jul 2015
Posts: 22
emmanpelayo is on a distinguished road
Default Thanks!

You're a legend Paul! Problem solved!!!!
Reply With Quote
  #13  
Old 07-13-2015, 07:37 AM
emmanpelayo emmanpelayo is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 64bit
Novice
Developer Functions
 
Join Date: Jul 2015
Posts: 22
emmanpelayo is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Try the attached. I've re-arranged the tables slightly to make the row additions simpler.
Is it possible to have the extra BAR set in this file to have outside borders as the one shown in ICU area? Thanks!

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.
Attached Files
File Type: docm DM Report4.docm (447.7 KB, 11 views)
Reply With Quote
  #14  
Old 07-13-2015, 10:36 PM
macropod's Avatar
macropod macropod is offline Developer Functions Windows 7 64bit Developer Functions Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try the attached. I had to delete the logo to keep within the board's upload size limit.
Attached Files
File Type: docm DM-4.docm (56.7 KB, 17 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Developer Functions 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 Functions 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

Other Forums: Access Forums

All times are GMT -7. The time now is 07:51 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft