Joffcom

Its a little bit random

code

WordPress SimpleFolio Fix

At the moment I am redoing the Digital Arrow website and to make it easier and look nice we are using Simple Folio as the base for the custom work. Like most software updates the last WordPress 3.1.1 was no different and broke the slider on the main page which has lead to me having [...]

Posted in code, PHP, Wordpress | 2 Comments »

Excel VBA Form Quit

If you make an excel user form and use the following code to load the form when Excel is opened you will run into a problem when the user clicks the x to close. 1 2 3 4 Private Sub workbook_open() Application.Visible = False FORM.Show End Sub The problem is Excel is still opened in [...]

Posted in code, Excel, VBA | No Comments »

Yet More Excel VBA

I got very bored yesterday at work and decided to make a stopwatch using Excel and VBA it is a very simple thing to do and only took about 10 minutes to make so here is some more code for anyone who is interested. Open Excel and press Alt+F11 to open the VBA editor and [...]

Posted in code, Excel, VBA | No Comments »

Refresh CMD

Here is another little bit of code I found on my Hard drive. This one sorts out most internet connectivity issues by releasing the IP then flushing the DNS and finally renewing the IP. Again just copy into notepad and save as file.bat I called mine network_refresh.bat 1 2 3 4 5 6 7 8 [...]

Posted in code, Network, Windows | No Comments »

Network VBS

While looking through some of my backed up Windows files from before the switch to Linux I found the little tool I used to set up computers to a domain quickly. Copy the code into notepad and save as file.vbs I called mine network.vbs and just run it on any computer to add it to [...]

Posted in code, Network, Windows | No Comments »