Skip to main content

drew _

drew _'s Public Library

03 Dec 09

Simple AVR Programmer

  • The project allows an easy transfer of hex programs to most Atmel AVR microcontrollers without the need for high cost and constraint time.
02 Dec 09

MonkeyGTD - gtd inspired task manager powered by tiddlywiki

@media print { #mainMenu, #sidebar, #messageArea {display: none ! important;} #displayArea { margin: 1em 1em 0em 1em; } .tiddler { font-size: 150%; padding: 1em 1em 0em 1em; } .tagging { display: none ! important; } }

ccahua.googlepages.com/monkeygtd2pocketmod.html - Preview

pda

16 Nov 09

Maybe Baby Einstein's founder isn't an American hero after all. - By Timothy Noah - Slate Magazine

  • offer a refund to anyone who purchased a Baby Einstein DVD between June 5, 2004, and Sept. 4, 2009, (which covers President Bush's January 2007 pitch). The company already offered a 60-day money-back guarantee for its videos, but the new refund offer gives consumers until March 2010 to return videos purchased during the designated time period and requires no receipt.
13 Nov 09

Insert Rows using a Macro

  • Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    'David McRitchie, 2007-09-07 insrtrow.htm on double-click
    '-- will copy more often than Extend Formulas and Format (tools option)
    Cancel = True
    Target.EntireRow.Copy
    Cells(Target.Row + 1, 1).EntireRow.Insert
    Cells(Target.Row + 1, 1).EntireRow.Select
    ActiveSheet.Paste
    Application.CutCopyMode = False
    On Error Resume Next
    '-- customize range for what cells constants can be removed --
    Intersect(Selection, Range("b:IV")).SpecialCells(xlConstants).ClearContents
    On Error GoTo 0
    End Sub
12 Nov 09

VBA Express : Excel - Combine All Workbooks from One Folder Skipping Blank Sheets

  • Option Explicit

    '32-bit API declarations
    Declare Function SHGetPathFromIDList Lib "shell32.dll" _
    Alias "SHGetPathFromIDListA" (ByVal pidl As Long, ByVal _
    pszpath As String) As Long

    Declare Function SHBrowseForFolder Lib "shell32.dll" _
    Alias "SHBrowseForFolderA" (lpBrowseInfo As BrowseInfo) _
    As Long

    Public Type BrowseInfo
    hOwner As Long
    pIDLRoot As Long
    pszDisplayName As String
    lpszTitle As String
    ulFlags As Long
    lpfn As Long
    lParam As Long
    iImage As Long
    End Type

    Function GetDirectory(Optional msg) As String
    On Error Resume Next
    Dim bInfo As BrowseInfo
    Dim path As String
    Dim r As Long, x As Long, pos As Integer

    'Root folder = Desktop
    bInfo.pIDLRoot = 0&

    'Title in the dialog
    If IsMissing(msg) Then
    bInfo.lpszTitle = "Please select the folder of the excel files to copy."
    Else
    bInfo.lpszTitle = msg
    End If

    'Type of directory to return
    bInfo.ulFlags = &H1

    'Display the dialog
    x = SHBrowseForFolder(bInfo)

    'Parse the result
    path = Space$(512)
    r = SHGetPathFromIDList(ByVal x, ByVal path)
    If r Then
    pos = InStr(path, Chr$(0))
    GetDirectory = Left(path, pos - 1)
    Else
    GetDirectory = ""
    End If
    End Function

    Sub CombineFiles()
    Dim path As String
    Dim FileName As String
    Dim LastCell As Range
    Dim Wkb As Workbook
    Dim WS As Worksheet
    Dim ThisWB As String

    ThisWB = ThisWorkbook.Name
    Application.EnableEvents = False
    Application.ScreenUpdating = False
    path = GetDirectory
    FileName = Dir(path & "\*.xls", vbNormal)
    Do Until FileName = ""
    If FileName <> ThisWB Then
    Set Wkb = Workbooks.Open(FileName:=path & "\" & FileName)
    For Each WS In Wkb.Worksheets
    Set LastCell = WS.Cells.SpecialCells(xlCellTypeLastCell)
    If LastCell.Value = "" And LastCell.Address = Range("$A$1").Address Then
    Else
    WS.Copy After:=ThisWorkbook.Sheets(ThisWorkbook.Sheets.Count)
    End If
    Next WS
    Wkb.Close False
    End If
    FileName = Dir()
    Loop
    Application.EnableEvents = True
    Application.ScreenUpdating = True

    Set Wkb = Nothing
    Set LastCell = Nothing
    End Sub
1 - 20 of 3134 Next › Last »
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo