LH said:
Afraid not. Please try again.
Okay, starting over again. I am a medical transcriptionist and I have
a couple of accounts that this macro I am trying to create would apply
to - but this one in particular is the most time-consuming and boring
because the notes are so short. I actually spend more time opening,
saving, and creating the document than I do typing the document. I
find it faster, a lot faster, to have a pre-made template that I just
type in. Then when I am done typing it everything, I go in and use a
combination of several macros to break them down into separate
documents. It makes it not quite so boring to do it this way also.
Each one is to be named the patients last name hyphen first name period
and the date dictated. So the report below would be named
Doe-John.031906
This first sample below is what a completed report would look like,
minus confidential information, but just to give you a rough idea. The
second sample is the actual template I start out with, but there are
about 60 duplicate pages in one template.
_______________________________________________________________
March 19, 2006
James Doe, M.D.
Make Believe Family Practice
Re: John Doe
DOB: 11/11/1911
Date of Consultation: 03/15/2006
Dear James:
I saw John Doe for...........
Physical findings showed ............
I recommend that the patient ..........
Sincerely,
Jane D. Doe, M.D.
JDD\ABC:lcm 0319-048
___________________________________________________________________
[, 2006
Re: [
DOB: [
Date of Consultation: [
Dear [:
[
Sincerely,
Jane D. Doe, M.D.
JDD\ABC:lcm [
_________________________________________________________________
I use the brackets in a macro to get from one spot to the next without
having to take my hands off the keyboard. The brackets are the
information that would vary between patients. After I type the whole
thing, I have a macro that copies/cuts the first page of the document,
opens up another template like this one (for margin purposes), deletes
everything on that document, and pastes the copied/cut selection text
from the original document to the new blank one. I then have a macro
where I put the cursor at the end of the patients last name. It pulls
the name, swaps it around, capitalizes the first letter of both the
first and last name, inserts a hyphen between the two, places a period
at the end, copies the date from the top line, pastes all info (the
entire file name ) at the end of the patients name, and then "cuts"it
from the document. I then hit F12 and Control V to paste the selection
into the File Name space and hit enter. I close the document and refer
back to the original document.
I hope I am not confusing you too much already.
I know that there is an easier way to combine my macros or create a new
macro that can do all of this in one keystroke or one touch of a
toolbar button, or (heck lets wish here) even break them all down and
create 60 individually named files at the touch of one button. It may
not seem like it would be any faster with all of these steps, but to me
it is. I have several accounts that operate like this, though others
want more information, such as doctor initials, my initials, patients
first and last name, the type of report it is, and the date the patient
was seen. I have macros that create the file names for me but I have
to run the macro, hit F12, Control V, Enter, and then close the
document or jump to the next bracket in the document to continue
typing.
The second problem I have run into has something to do with the VBA
codes. I find that when trying to paste copied selection and save -
all within the macro - that whatever text is selected at the time of
creating the macro is the text that will be pasted every time I run the
macro as opposed to copying the new information each time. My macros
are all created with the "Record New Macro" feature. I am not real
familiar with these codes but need to learn.
I am not wanting someone to just do this for me. I actually want to
learn so that I may apply this to my other macros as well. I have come
a long way with macro building over the last 3 years but I know that
there is so much more to learn.
I appreciate any help you can offer me with my macro-building dilemma.