A community of 30,000 US Transcriptionist serving Medical Transcription Industry


Calling on Macro Diva again, if you're still about. - Word Student


Posted: May 15, 2014

I don't know where to begin with trying to record a macro for this need myself.  On my main account, we're required to list meds without any following punctuation, but due to other MTSOs also subbing on it (who apparently don't have any specs or just don't have to follow the same specs we do), the lists invariably come through on VR with totally inconsistent punctuation.  Such as this:

MEDICATIONS:
Ativan,
Zofran
Dexamethasone.
Diltiazem
Lanoxin.

But should be this:

MEDICATIONS:
Ativan
Zofran
Dexamethasone
Diltiazem
Lanoxin

Is there any way to make a macro that will delete the periods/commas when they're included behind the individual meds? (including ignoring when there is no punctuation at all, as should be, as with Zofran and Diltiazem in my first example above ... this being my main problem in trying to figure out how to make a macro for this since I can't just drop down a line and delete the last character, which may just be the last letter of the med if no comma or period there)

Another issue is that there's not always a consistent heading (sometimes CURRENT MEDICATIONS, etc., but MEDICATIONS is usually part of the heading, so I was trying to think of a way to search for MEDICATIONS in caps and disregard anything else before or after and then drop down one line to start the code running that will delete a comma or period.  Hopefully that makes sense.

Thanks for any ideas.  And once again, thanks so much for your amazing help in the past.  It's made my editing VR exceedingly less frustrating.

 

Find/delete comma/period - MacroDiva

[ In Reply To ..]

 


I would put on a hot key combo.  This looks for the first comma or period to the left, and then returns to  original insertion point.  If you need to undo it just use control-Z.

Sub FindLastCommaPeriod()

With Selection

    .TypeText "^"

    .MoveUntil cset:=",.", Count:=wdBackward

    .TypeBackspace

    .MoveUntil cset:="^", Count:=wdForward

    .Delete

End With

End Sub

 


I would put on a hot key combo.  This looks for the first comma or period to the left, deletes it, and then returns to  original insertion point.  If you need to undo it just use control-Z.  Position your cursor at very end of the meds list, and run it until all the periods and commas are gone.


Sub FindLastCommaPeriod()


With Selection   


.TypeText "^"   


.MoveUntil cset:=",.", Count:=wdBackward   


.TypeBackspace   


.MoveUntil cset:="^", Count:=wdForward   


.Delete


End With


End Sub

Sorry for the delay, been busy. - Word Student

[ In Reply To ..]
Nice, thanks. Would there be any way to get it to run repetitively on its own going up/left until it comes to a colon (i.e., at the end of MEDICATIONS:) and then just stop?

Delete Comma/Period #2 - MacroDiva

[ In Reply To ..]

 


My only concern about this, does your med list ever contain dosages?  (For example, Synthroid 0.125 mcg?)  It is possible of course to write a macro to allow for this, but it is a little bit more complicated. Again, I would put this on a hot key combo for ease of use.

Sub RemoveCommaPeriod2()

' Macro created 5/17/2014 by WordExpress Transcriptions

' to delete unwanted punctuation in medication list

' Position cursor at very end of medication list

Selection.TypeText "^"

Selection.MoveUntil cset:=":", Count:=wdBackward

GoSub RemovePunc

While Char <> "^"

GoSub RemovePunc

Wend

Selection.TypeBackspace

    Exit Sub

RemovePunc:

Char = Selection.Text

If Char = "." Or Char = "," Then Selection.Delete: Return

Selection.MoveRight unit:=wdCharacter

Return

End Sub

 


Of concern, does your med list ever contain dosages?  (For example, Synthroid .125 mcg?)  This macro would delete any decimals, so does this need to be changed to accommodate decimals?


I would put this on a hot key combo for ease of use.


Sub RemoveCommaPeriod2()


' Macro created 5/17/2014 by WordExpress Transcriptions


 ' To delete unwanted punctuation in medication list


' Position cursor at very end of medication list


Selection.TypeText "^"


Selection.MoveUntil cset:=":", Count:=wdBackward


GoSub RemovePunc


While Char <> "^"


GoSub RemovePunc


Wend


Selection.TypeBackspace   


Exit Sub


RemovePunc:


Char = Selection.Text


If Char = "." Or Char = "," Then Selection.Delete:Return


Selection.MoveRight unit:=wdCharacter


Return


End Sub

Yes, occasionally contains dosages, about 1/4 to 1/3 of the time. - Word Student
[ In Reply To ..]
nm
Remove comma/period in list but protect decimal - MacroDiva
[ In Reply To ..]

 


Sub RemoveCommaPeriod3()

' Macro created 5/17/2014 by WordExpress Transcriptions

' to delete unwanted punctuation in medication list

' Position cursor at very end of medication list

Dim Char As Variant

Selection.TypeText "^"

Selection.MoveUntil cset:=":", Count:=wdBackward

GoSub RemovePunc

While Char <> "^": GoSub RemovePunc: Wend

Selection.TypeBackspace:

Exit Sub

RemovePunc: Char = Selection.Text

If Char = "," Then Selection.Delete: Return

If Char = "." Then GoSub Check4Number: Return

Selection.MoveRight unit:=wdCharacter: Return

Check4Number:

Selection.MoveRight unit:=wdCharacter: Char = Asc(Selection.Text)

If Char > 47 And Char < 58 Then Return

Selection.TypeBackspace: Return

End Sub

 


Sub RemoveCommaPeriod3()


' Macro created 5/17/2014 by WordExpress Transcriptions


' To delete unwanted punctuation in list; protects decimals


' Position cursor at very end of medication list


Dim Char As Variant


Selection.TypeText "^"


Selection.MoveUntil cset:=":", Count:=wdBackward


GoSub RemovePunc


While Char <> "^": GoSub RemovePunc: Wend


Selection.TypeBackspace


Exit Sub


RemovePunc:


Char = Selection.Text


If Char = "," Then Selection.Delete: Return


If Char = "." Then GoSub Check4Number: Return


Selection.MoveRight unit:=wdCharacter:Return


Check4Number:


Selection.MoveRight unit:=wdCharacter: Char = Asc(Selection.Text)


If Char > 47 And Char < 58 Then Return


Selection.TypeBackspace: Return


End Sub

Awesome, fantastic! Thanks so much, once again!! - Word Student (nm)
[ In Reply To ..]
nm
Darn, I forgot something... - Word Student
[ In Reply To ..]
b.i.d., t.i.d., q.i.d., p.r.n. at the end of meds (the macro is deleting all those necessary periods).

MEDICATIONS:
Fenofibrate 200 mg daily
Gabapentin 600 mg t.i.d.
Lisinopril 10 mg daily
Humalog sliding scale p.r.n.
Norco 10/325 p.r.n.


With macro (periods required in all on this account):

MEDICATIONS:
Fenofibrate 200 mg daily
Gabapentin 600 mg tid
Lisinopril 10 mg daily
Humalog sliding scale prn
Norco 10/325 prn
t.i.d., p.r.n., e.t.c. - MacroDiva
[ In Reply To ..]
I think this would require a bit more programming from me than I think it is worth. Instead, why don't you record/create a search/replace macro to run after you take out the periods and commas,and simply "call" it at the end.

i.e.:
replace prn with "p.r.n. etc.

You may need to modify it a bit (you didn't state whether it is:

Vicodin 5/325 mg p.r.n.

or if it is

Vicodin 5/325 mg p.r.n (no period)

If so, you will need to be aware when you get something like

Vicodin p.r.n. pain -- maybe do an additional search/replace for that, you will need to watch and tweak this search/replace macro for a few weeks. Occasionally you may have to make a manual edit but I think you can get this macro to be entirely automatic 98% of the time.

Reminder - MacroDiva
[ In Reply To ..]
when you create your macro to search & replace prn with p.r.n., etc., be sure to place the "call" before "exit sub" and not "end sub."
Thanks, I'll play around with it. Appreciate all your help. - Word Student (nm)
[ In Reply To ..]
nm
update: So far, so good. - Word Student
[ In Reply To ..]
And being able to tweak a search/replace macro seems not only easier but more efficient, especially with my skill levels in this regard.

Once again, my eternal gratitude.


Similar Messages:


Calling Macro Diva
Sep 29, 2013

Just wondering if it's okay/possible to put my "Call" macros back towards the end of General_Macro? And if so, where?  I tried moving them to just before End Sub and also before Page 1:Selection..., but those locations didn't work.  I'm getting an occasional errant "g" or "L" (apparently related to the GramLiter macro) at the very beginning of my VR text when I run it now, which I didn't have at all before when the "called' macros were at the end.  Was part of the fix ...


Paging Macro Diva
Jan 19, 2014

Would enjoy talking with Macro Diva about all things macro!  I've written one big macro with which I preprocess virtually all of my transcribed documents.  First, it identifies the document template type, e.g., office note, letter, hospital discharge, echocardiogram, PV study, etc.  It then displays a dialog box with drop-down lists from which I select the ordering physician, dictating physician, date of study, date dictated. etc.  (The date of transcription is, of ...


Diva Transcription
Jan 08, 2011

Does anyone have any info on Diva Transcription? It's a smaller company, but I'm hoping someone can answer. Thanks! ...


Op Note Diva?
Jul 19, 2011

Did anyone see the ad this morning for an op note diva?  Where did it go? ...


Calling Me On My Day Off To Do OT
Sep 16, 2013

First, let me say, I do like my TSM, she is great and I know she is only doing as she is instructed, but where do these people get the nerve to call me on my day off and think I will stop what I'm doing and help them?  The audacity is mind boggling.  Cut our pay, put most of us in financial ruin, expect more and more for less and less pay and then you want ME to help YOU?  If it wasn't so pathetic, it would almost be funny.  How stupid or maybe greedy do y ...


I AM NOT NAME CALLING ...
Jun 17, 2015

I'm trying to give you all a wake up! I've worked my whole life (50 years) and have never been paid for only half my work. What I'm doing doesn't matter. You have to decide what you're going to do. Voice recognition will get better and medical providers will buy their own. Why pay companies like Nuance to edit when they can do it themselves? Why do you think Nuance is selling Dragon? They know exactly what's coming and want to milk the industry for all they can. In ...


Calling All MQ Employees!
Feb 03, 2011

Have phone interview next week.  Looking for info on pay scale, weekend/holiday/schedule expectations, and vacation time info.  Don't want to waste my time or theirs.  Please only reply if you are a current employee with knowledge of current policies.  I looked on their website but can't find this info....  thanks a bunch!  ...


Question About Being PT And Calling In Sick...
Dec 16, 2009

Just came from Acute Care.  I have strep throat and I will be heading off to bed.  I've worked at MQ for 3 years and never ever called in sick.  My super is on PT.  Even so, I will call and leave her a message.  I have no PTO time.  Will I be required to make this up?  ...


Calling On All Career Changers!
Feb 25, 2010

I am not wanting to know opinions on traditional versus speech anymore...been doing that way too long...absolutely moving on at this point.  What I would like to know is...what did those of you choose to do when you gave up MT?  Very, very important to me.  Thanks.  ...


Every Person Here Should Be Calling Their Congressman And Asking Why
Apr 09, 2013

Its one thing when private business with private equity sends jobs overseas.  It is entirely another when Medicare and Medicaid is supporting job growth in India.  Why are we not emassing in the halls of Congress????   This affects every American, not just MTs. ...


I Feel Like Calling Up My QAM And Asking HER What I Should Put In This Report.
Dec 12, 2013

Did the doctor change his mind on the patient's position, or is it just a gap because he got distracted and repeated himself. Gee, should I put modified or not put in that word? I would say the doctor was distracted and repeated himself, but who knows (except QA). I have been smacked too many times to make any decision. This is what happens when you treat a dog like we have been treated - too leary to take any action! Should have included that in the company survey! ...


Calling All Andrews Grads
Jan 20, 2015

What prior profession did you come from? Were you able to pass the CCS after graduation? How long did it take you to find a job? Did your CCS help even though you had no coding experience? What kind of entity are you working for? Are you glad you chose Andrews? Any other comments for me? (I am about to apply there) ...


They're Calling For OT On A Holiday Weekend?!
Apr 02, 2015

x ...


AHDI, Or AAMT..or Whatever They Are Calling Themselves These Days
Jul 11, 2011

If anything..they are simply a  Sales Convention for MTSOs and only have their interest at heart.  There are never topics that relate to working as an MT or being properly represented.  Instead we get the never ending changing BOS, or the CMT certification which AGAIN has changed...and btw..took a look a "sample" test and it has NOTHING to do with being an MT!  It was more for a clinician.  We are language specialists..not clinicians.  I have been an MT for over 20 ...


Calling All Radiology Girls........need Input
Dec 13, 2013

I finally have the opportunity to get out of this work-at-home situation and go to a hourly paying job doing radiology transcription.  The only radiology I have done is the usual radiology dictated on reports in the acute care setting.   In your honest opinions, do you think that someone who has been doing acute care for 15 years could transition over to radiology?   Thanks ...


Macro Help!!! Please!!!
Oct 27, 2014

Hi:  I am hoping someone can help me with the above.  I don't have much experience in the macro tools (although I have one to jump from field to field).  This doctor is a psychiatrist who examines a client and then reports his findings sometimes to attorneys. He constantly in his report will want to quote and bold a statement or set of statements even within the same sentence.  So he will say, Mr. ?? said quote bold blah, blah blah quote unbold, and then stated again quo ...


Question For Leads - Has Anyone Else Ever Dealt With "Diva" MTs?
Oct 29, 2009

A question for leads - has anyone else ever dealt with diva MTs?  You know, the type who (when their QA isn't so great) get personally offended when you do your job and point out their repeated errors?  The type who complain about not getting enough money but yet absolutely refuse to work over 8 hours to achieve just that when they just start out, and the type who complain about not enough work yet refuse to help out when the workflow is high on the weekend?  The type who, be ...


Archivus Calling Us Off Of Work Again. Just Nothing To Type, Same Old Story
Nov 19, 2009

I am beginning to hate the fact that I took this job.  They keep calling us off or switching us to clinic work or something else.  This is one of the worst places I have ever worked.  I am going to have to find something else.  ...


How Long To Wait Before Calling After Sending Resume?
Aug 04, 2011

For the first time in 6 years, I am job hunting.   Sadly, things seem to be going downhill fast with the employer I have been with for just over 6 years now and I have a strong feeling that it's time for me to start exploring other options.   I just dusted off and updated my resume and sent it to a couple of companies who have ads posted.   It has been so long since I have had to apply for jobs.   My question is how long to you wait after sending your resume before follo ...


Calling To Register With Andrews Soon - Ready To Leave MT Sm
Mar 28, 2012

I had been wondering how I was going to come up with a down payment to register for the Andrews coding course and it looks like I will be able to do it in a week.  I am so happy I could cry buckets.   I have not been an MT as long as some, but I entered the field because I love research and anything medical related.  When I started as an MT, MTSOs still wanted blanks and everything else researched for as perfect a document as possible.  I still have issues with spending ...


Anyone Have Secret Fantasies Of Anonymously Calling The Facility--sm
Apr 18, 2013

and educating them about what truly constitutes a STAT.  Just because something is dictated by a resident does not mean it is a stat, especially if the discharge was 4 months ago.  Of course, I also have fantasies of conducting a class for residents, helping them to utilize their critical thinking skills and critically evaluate the pertinent information for the report instead of talking for 30-45 minutes about stuff that does not need to be on the chart for the umpteenth time.  If ...


From MSN, They Are Calling It The Death Of Middle Class And We Are On The List.
Jan 23, 2014

see link ...


MS Word Macro Help
Jun 02, 2010

It has been so long since I needed to do this - the macro to do this is on a long dead computer.  I am creating macros for particular reports.  After the heading and the :  I would space twice and put a /.  I had a macro that was called by the person who created it originally I suppose, pause.  I copied that macro (named it pause) as a separate macro and assisgned it a keystroke (let's say F5).  Then when I pulled up say the op note macro, to move to the next f ...


Any Macro Experts?
May 14, 2013

So I have all these templates to pull into a single document all the time depending on what the patient is being seen for.  I also have to put the name, dob, etc, in a particular place in all of these templates.  Is there anyway to make a macro that will ask me the pertinent info up front and then when done it all just populates ready for me to just type?  This is in Word by the way. ...


How To Make M*Modal Stop Incessantly Calling Me? I DON'T WANT TO WORK FOR THEM
Jul 09, 2012

I am so sorry if this has been posted before. I looked but didn't see any other posts. I applied with M*Modal a while back but landed a different MT job that I'm happy with. But these people still will NOT stop e-mailing me and calling me and leaving automated voicemail messages. ONE voicemail message is quite enough. If I was genuinely interested in working for them, I probably would have called them back, ya think?? (And boy, it's really nice to know I am not a human being t ...


Help With Macro For Word 2002/XP
Jun 09, 2010

Hey everyone. Why is my macro disappearing everytime I close word?  I don't normally use macros but for this instance I am.  I just created a simple macro by going into Tools, make new macro, etc.  I test it out on word and it works.  When I close out the word program and bring it back up and run that macro I just created it is not there.  I'm not well versed with macros so I wrote down that it was saving it as a normal.dot (global template).  Can anyone ...


Word Expander Or Macro?
Nov 20, 2010

Which is better? What are the differences? I have been using macros in MS Word. I downloaded a trial version of a shorthand program once, but it was a little confusing and it seemed much more involved than recording a macro. Any advice/opinions appreciated! ...


MS Word Macro Question
May 16, 2011

I've been having problems with my macros "sticking."  I'll make one, and the next day it doesn't work.  I'll go into the list of macros and it'll still be there, but the command won't work. I just made one that removes the cc line if it isn't used. I'm curious to see if it's still there when I log back in tomorrow.  Any idea why this happens?  I was a pro at editing my macros in the dinosaur days of DOS but not now, so I don' ...


Macro To Add Drug To AutoCorrect
Feb 16, 2013

  (risedronate sodium) tablets Sub ChangeControl1Key() CustomizationContext = ActiveDocument.AttachedTemplate KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyControl, wdKey1), _     KeyCategory:=wdKeyCategoryMacro, Command:="AddMedToAutoCorrect" End Sub Sub AddMedToAutoCorrect() Dim BrandString, GenericString, Title, Message, LittleString Title = "WordExpress Transcriptions" Message = "Type in brand name of medication as you would like it " _ & "to appear in your text:" ...


PC SHORTHAND - Make A Macro?
Mar 30, 2013

Hey everyone, I am new to shorthand.  I was hoping someone could help me make a macro.  I am trying to make a macro for ALT+L, D.  I know how to do key control and then pick a key, but staring with ALT has me confused.  I would appreciate any help.  Thank you. ...