I am trying to write a macro or VBA, whichever is easier (right now feels like macro is) to create a print button that applies print parameters based on the ranges specified in the "Name Box" (box in the top left), based on the last 3 letters of the name, the sheets page layout, print settings and such will vary but I can't figure out how to get VBA to pay attention to the letters in the "Name Box", identify them, and print based on what letters it finds in the last three positions/whether or not they are contained. Could use a hand here, big thanks if anyone can help. Side note, workarounds are a bit of a challenge here, the only way I could find to define each range is with that name box, they need to be comingled within a sheet so I can't make a sheet for each one. The best way I could think was to make a temporary sheet with the range represented by the name, print that sheet with the parameters I need, and then delete that sheet.
Bookmarks