Skip to content

Instantly share code, notes, and snippets.

View brucemcpherson's full-sized avatar

bruce mcpherson brucemcpherson

View GitHub Profile
@brucemcpherson
brucemcpherson / cDataSet.xml
Last active January 24, 2019 01:18
gistThat VBA manifest for cDataset and associated modules - see ramblings.mcpher.com for details
<gistThat info="this is a manifest for gistThat VBA code distribution - see ramblings.mcpher.com for details">
<manifest description="cDataset and associated classes and modules" contact="bruce@mcpher.com">
<gists>
<item1 gistid="3414216" version="" filename="cCell.cls" module="cCell" type="class" />
<item2 gistid="3414216" version="" filename="cDataSet.cls" module="cDataSet" type="class" />
<item3 gistid="3414216" version="" filename="cDataSets.cls" module="cDataSets" type="class" />
<item4 gistid="3414216" version="" filename="cDataColumn.cls" module="cDataColumn" type="class" />
<item5 gistid="3414216" version="" filename="cDataRow.cls" module="cDataRow" type="class" />
<item6 gistid="3414216" version="" filename="cHeadingRow.cls" module="cHeadingRow" type="class" />
<item7 gistid="3414346" version="" filename="" module="usefulStuff" type="module" />
@brucemcpherson
brucemcpherson / usefulColorStuff.vba
Last active July 6, 2021 00:13
useful color manipulation functions for VBA
'gistThat@mcpher.com :do not modify this line - see ramblings.mcpher.com for details: updated on 28/02/2013 09:55:55 : from manifest:3414394 gist https://gist.github.com/brucemcpherson/3414615/raw
' this is all about colors
Option Explicit
' v2.7 3414615
Public Type colorProps
' this is a single type to hold everything i know how to calculate about a color
rgb As Long
red As Long
green As Long
@brucemcpherson
brucemcpherson / cregXLib.cls
Last active March 5, 2018 09:50
regexexpression library for VBA
'gistThat@mcpher.com :do not modify this line - see ramblings.mcpher.com for details: updated on 28/02/2013 09:55:55 : from manifest:3414394 gist https://gist.github.com/brucemcpherson/3414836/raw/cregXLib.cls
Option Explicit
' v2.02
'for more about this
' http://ramblings.mcpher.com/Home/excelquirks/classeslink/data-manipulation-classes
'to contact me
' http://groups.google.com/group/excel-ramblings
'reuse of code
' http://ramblings.mcpher.com/Home/excelquirks/codeuse
' for building up a library of useful regex expressions
@brucemcpherson
brucemcpherson / usefulStuff.xml
Created August 21, 2012 17:10
useful modules manifest
<gistThat info="this is a manifest for gistThat VBA code distribution - see ramblings.mcpher.com for details"><manifest description="useful module" contact="bruce@mcpher.com"><gists><item1 gistid="3414346" version="" filename="" module="usefulStuff" type="module"/></gists></manifest></gistThat>
@brucemcpherson
brucemcpherson / cRest.cls
Last active July 29, 2021 21:59
Excel rest library
'gistThat@mcpher.com :do not modify this line - see ramblings.mcpher.com for details: updated on 15/10/2013 10:52:06 : from manifest:5055578 gist https://gist.github.com/brucemcpherson/3423885/raw/cRest.cls
' This is a generalized class for dealing with rest queries
Option Explicit
' v2.13
'for more about this
' http://ramblings.mcpher.com/Home/excelquirks/classeslink/data-manipulation-classes
'to contact me
' http://groups.google.com/group/excel-ramblings
'reuse of code
' http://ramblings.mcpher.com/Home/excelquirks/codeuse
@brucemcpherson
brucemcpherson / cBrowser.cls
Last active April 11, 2021 15:21
cBrowser - web service access
'gistThat@mcpher.com :do not modify this line - see ramblings.mcpher.com for details: updated on 11/22/2013 11:15:19 AM : from manifest:7471153 gist https://gist.github.com/brucemcpherson/3423912/raw/cBrowser.cls
Option Explicit
' acknowledgement
' http://pastie.org/1192157 for basic authentication 'how to'
'for more about this
' http://ramblings.mcpher.com/Home/excelquirks/classeslink/data-manipulation-classes
'to contact me
' http://groups.google.com/group/excel-ramblings
'reuse of code
' http://ramblings.mcpher.com/Home/excelquirks/codeuse
@brucemcpherson
brucemcpherson / ramblings.xml
Created August 22, 2012 09:06
Under construction: manifest for all of the modules and classes used in ramblings.mcpher.com
<gistThat info="this is a manifest for gistThat VBA code distribution - see ramblings.mcpher.com for details">
<manifest description="Under construction:all of the modules &amp; classes on ramblings.mcpher.com" contact="bruce@mcpher.com">
<gists>
<item1 gistid="3414216" version="" filename="cCell.cls" module="cCell" type="class" />
<item2 gistid="3414216" version="" filename="cDataSet.cls" module="cDataSet" type="class" />
<item3 gistid="3414216" version="" filename="cDataSets.cls" module="cDataSets" type="class" />
<item4 gistid="3414216" version="" filename="cDataColumn.cls" module="cDataColumn" type="class" />
<item5 gistid="3414216" version="" filename="cDataRow.cls" module="cDataRow" type="class" />
<item6 gistid="3414216" version="" filename="cHeadingRow.cls" module="cHeadingRow" type="class" />
<item7 gistid="3414346" version="" filename="" module="usefulStuff" type="module" />
@brucemcpherson
brucemcpherson / refg.vba
Created August 22, 2012 14:05
How to get the installed references in the Excel VBE
Private Sub refG()
Dim r As Reference
With ActiveWorkbook.VBProject
For Each r In .References
Debug.Print r.GUID, r.name, r.Major, r.Minor, r.description
Next r
End With
End Sub
@brucemcpherson
brucemcpherson / gistAddRefs.vba
Last active April 11, 2021 15:20
This will add references needed by gistThat bootstrap
'IMPORTANT - CHANGE gtExampleLoad() to include gtDoit() for each Gist you want to load
' bootstrap code to update VBA modules from gists
' all code is in this module - so no classes etc.
' latebinding is used to avoid need for any references
' can be found at https://gist.github.com/3403537
Option Explicit
' v2.02
' if you are using your own gists - change this
Const gistOwner = "brucemcpherson"
@brucemcpherson
brucemcpherson / ub.bas
Created September 1, 2012 09:49
how to click javacript button in vba
Private Sub ubtest()
Dim f As String, linkCollection As Object, l As Object, targetText As String
' test web page
f = "http://dl.dropbox.com/u/14196218/Share/p.html"
targetText = "Show more providers"
' create browser instance
Dim browser As InternetExplorer
Set browser = CreateObject("InternetExplorer.Application").Application