Results 1 to 3 of 3

Thread: Word macro - pop up a list of potential items to paste?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    2

    Question Word macro - pop up a list of potential items to paste?

    Hi everyone,

    I've got only a very basic understanding (OK, probably less than basic understanding) of programming & writing macros, so please bear with me! What I'd like to do should be fairly simple, but I've spent literally all day searching through tons of stuff, all to no avail... this is probably because I'm using the wrong terminology, so feel free to correct anything I write here!

    I'm creating a macro for my law journal that will make citations easier for everyone. Whenever we cite another law journal article, we must use a very specific abbreviation of that journal's name (e.g., "Houston Law Review" becomes "Hous. L. Rev."). There's only a couple hundred journals, and I've made a list containing the full and abbreviated names of each.

    So - the idea for the macro is this - first, the user positions the cursor wherever they'd like the citation to go. Then the user runs the macro, and some kind of box pops up that lists all of the potential journals & their abbreviations. The box would also have an "insert" and a "cancel" button, and it would be nice if I could also put something in it to allow the user easily find the entry they want (probably either: 1) a text entry box to allow the user to begin typing the journal name, and the list would then scroll as they type, or 2) a list of letters A-Z (so that the user can select the first letter of the journal name). Once the user has highlighted the journal name/abbreviation that they'd like to insert, they'd simply click "insert."

    If anyone has code resembling this, I'd be forever grateful. Or if y'all even know what kind of box this should be or any other helpful tidbits, it would go a long way in getting me where I need to be. Thanks a ton.

  2. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Word macro - pop up a list of potential items to paste?

    Hi

    How about using word Autotext feature instead of a macro?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2007
    Posts
    2

    Re: Word macro - pop up a list of potential items to paste?

    If I can't figure out how to do it with some kind of pop-up box, I'll probably end up going with the Autotext - I'm reluctant to do this b/c I'd rather not have the user have to type out the entire journal name before getting the auto-text to work (they're often quite long & would have to be typed 100% perfectly in order to work)... also, the journal name must be in "small caps," so I'd like to have that built in as well (& I don't think I could do this using Autotext). Thanks for the suggestion though!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width