Excel vba to scan window

JeremySun

Board Regular
Joined
Jul 1, 2011
Messages
98
I was wondering if there was a way to have a vba to scan something like:

1. ALBUTEROL *HFA*--INH 90MCG AERP REFILLS REMAINING: 0 #: 3
EXPANDED SIG: INHALE 2 PUFFS EVERY 4-6~HOURS AS NEEDED FOR
SHORT~BREATH ~
2. COMBIVENT--INH AERP REFILLS REMAINING: 1 #: 4
EXPANDED SIG: INHALE TWO PUFFS BY MOUTH~FOUR TIMES A DAY ~
3. CYCLOSPORINE (RESTASIS)--OPT 0.05% EMUL REFILLS REMAINING: 1 #: 2
EXPANDED SIG: INSTILL 1 DROP IN EACH EYE TWICE A DAY
4. HYDROCHLOROTHIAZIDE--PO 25MG TAB REFILLS REMAINING: 0 #: 30
EXPANDED SIG: TAKE ONE TABLET BY MOUTH EVERY DAY


And have the vba capture for example Albuterol up to refills and the expanded sig and place it in a textbox in a userform. Then continue to the next medication and put that medication in another textbox and continue until there are no more on the list average is 15 medications. The source of the information will be an active window.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,224,582
Messages
6,179,670
Members
452,936
Latest member
anamikabhargaw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top