excel - Can a cell value trigger a userform? -


i'm creating small billing system in excel dental office (just mentioning in case has tips/tricks/suggestions on cool ideas not related issue i'm facing). have small template creating invoices in 1 of cells have data validation selecting patient, wondering if in list name selected "new patient" userform can pop input new patient information?

eg: put in worksheet module , adjust references appropriate

private sub worksheet_change(byval target range)      const new_pat string = "new patient"     const rng_new_pat string = "b3"     dim c range     set c = target.cells(1) 'in case multiple cells changed...      if c.address = me.range(rng_new_pat).address         if c.value = new_pat             'show userform         end if     end if   end sub 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo