This is some very useful code from Stack Overflow which allows the user to select a folder in VBA and reads the folder path into a variable. I'm currently making a macro which opens several XML files in a folder, and this will help users to input the folder where those XML files are located:
Sub SelectFolder() Dim diaFolder As FileDialog
' Open the file dialog Set diaFolder = Application.FileDialog(msoFileDialogFolderPicker) diaFolder.AllowMultiSelect = False diaFolder.Show
If you get this error when you just type “java” into the command prompt, then it can be solved by typing “PATH=C:\Program Files\Java\jdk1.7.0_06\bin” (the folder of your java.exe).
I use Stack Overflow a ton, and I'm going to try to make more of an effort to contribute.
I was having trouble scrolling horizontally with the iscroll plugin, and I solved it by enabling the hScroll option (which I thought should have been enabled by default). I use iscroll's zoom function to enable zooming on a single div, while the rest of the page does not zoom.
I had difficulties getting Thomas J Bradley's HTML5 Signature Pad to let me to use its API without resetting the field. This Github issue explains a workaround:
He is saving the signature, declaring the api variable, then regenerating the signature.
I needed to use the .getSignatureImage() api function which allows me to turn the signature into a base64 string so I could store the signature in a database.
The article in the link above describes the process of adding inline HTML to PHP code instead of "echo '<html>';". It seems like it's much faster to not process each echo statement with PHP.
This is definitely a big "oh!" moment for someone still learning PHP.