VBA Core

<p>General-purpose VBA techniques spanning the Office suite.</p>

Solved May 22, 2013

EXCEL VBA Timevalue format (hh:mm am/pm)

How do I set the format for timevalue for 12-hour clock without second. For example: hh:mm AM/PM. Right now I'm using Format(TimeValue(Now), "hh:mm") but…

thumb_up 14 trending_up 2
Solved January 26, 2013

Implementing String.Format() in VB6

Can String.Format() be implemented in VB6, at least a close-enough version of it that could be useful when programming in good ol' VB6? Good…

thumb_up 37 trending_up 32
Solved January 18, 2013

Save multiple sheets to .pdf

I have a reporting spreadsheet that grabs some data from a database and forms three sheets of summary report information. I want to run…

thumb_up 34 trending_up 10
Solved November 11, 2012

VBA-excel paste chart as a picture

I am creating various charts from the same source. I would like to be able to cut paste with vba each chart as a…

thumb_up 9 trending_up 4
Solved November 3, 2012

MSOFFICE MIME type verification

I have the following: $mimeTypes = array('application/msword'); //used to be an array $finfo = new finfo(FILEINFO_MIME, "/usr/share/misc/magic"); $type =…

thumb_up 10 trending_up 7