You've not seen the last of us!BUMP! GREAT STUFF! HAHAHAHA!
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Columns(Target.Row).ColumnWidth < 20 Then
Columns(Target.Row).ColumnWidth = 20 * (1 + (Rnd() / 2))
Else
Columns(Target.Row).ColumnWidth = 10 * (Rnd() / 2)
End If
End Sub
It worked on some computers in the office but it did not work on all. Try this, hit Ctrl+Alt+the Down Arrow. It will turn the screen upsided down, to reverse it hit Ctrl+Alt+the up arrow
You can do it with an API call (ChangeDisplaySettingsEx). The function documentation is here: http://msdn.microsoft.com/en-us/library/ms533235(VS.85).aspxIs there a way to invoke XP hotKeys? I'd love to make a button rotate the acreen with cntrl-Alt-down. When I use Sendkeys it does nothing.
Well here is my confession.
I once worked for a company for 10 years.
I have a A+ spreadsheets that compared orders with all the raw materials needed for production.
It was only 800 rows in Excel.
I wrote a nasty little code that everytime it was opened, a row was deleted ( very subtle ).
After I left I got a call to come back and fix it, for a flat fee of $500.
Which I did ( hehe ).