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; } }
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
Sponsored Links
Ads by Google
Top Tags
View All Recent Tags (49)
- 20_later,
- 13web,
- 12projects,
- 10food,
- 6tools,
- 6kids,
- 6eng,
- 64cyn,
- 5bike,
- 4shop,
- 4tshirts,
- 4funny,
- 3ee,
- 3ipod,
- 3id,
- 3search,
- 3jacket,
- 2learn,
- 2software,
- 2check,
- 2color,
- 2pda,
- 2wallpaper,
- 2led,
- 2tv,
- 2toys,
- 2read,
- 2book,
- 2rpg,
- 1blog,
- 1programing,
- 1excel,
- 1art,
- 1programs,
- 1paintball,
- 1program,
- 1clothes,
- 1recipies,
- 1music,
- 1wish,
- 1home,
- 1camera,
- 1drawing,
- 1design,
- 1diigo,
- 1bookmark,
- 1share,
- 1outlook,
- 1material
Public Tags (216)
drew _'s Public Lists (2)
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo

