Category "vba"

VBA Open Workbook from Macro fails "(path & filename) could not be found. Check the spelling..."

I have the following code, which should simply open a workbook from a master workbook to allow me to paste some information which I will later retrieve from a d

Change cut view text in CATIA

I'm currently working with CATIA V5, and I want to use Macros (VBA), but I have some problems! My question is: how to change the text of a cut view? (see the p

Open HTML file in excel, preserving HTML inline styling

I'm trying to open a HTML file in excel (from VBA) so that the HTML inline styling is preserved. Are there any special ways of doing this because currently I've

Open HTML file in excel, preserving HTML inline styling

I'm trying to open a HTML file in excel (from VBA) so that the HTML inline styling is preserved. Are there any special ways of doing this because currently I've

Wait for 5-10 seconds then run Outlook code

I have VBA code in an Outlook rule. I want when I get email with a specific subject, Outlook starts to run a script. However, when email is received, Outlook s

Return one newest instance of the mail, based on subject, from multiple subfolders

I have a search for items, in subfolders of the Inbox, based on subject line. I am trying to return the most recent mail and have been using the code: Items.Sor

Transferring variable from userform in the itemsend routine in outlook

currently, I have a routine in outlook that is run when I send and email. The object of the code is to automatically CC a person in organization A whenever I e

How to import OPML file into Outlook 2013 via VBA?

In Outlook 2013 there is an option to import an OPML file and add all or some selected RSS feeds to the feeds list. This function can be triggered by right-clic

Delete large number of rows (e.g. ~500k rows) based on a certain criteria

I have a large number of rows and columns (e.g. 500k rows and 20 columns) all filled with numbers. I'm trying to delete all data in column I that has a certain

Sharepoint list retriving and updating using VBA

I'm new to this, but have been reading some answers earlier and see some experts have clarified many topics which are complex and so seeking help. I'm trying u

Cannot Run Visual Basic Editor Because of a Syntax error whilst recording macro

I am a bit suprised as I am trying to record a macro in Excel, but I keep getting this error: Cannot Run Visual Basic Editor Because of a Syntax error The mo

Determine if an Outlook event is a meeting and what the response was

I'm trying to write a macro in Excel that will look through my Outlook calendar, grab all the events, and display the following information: subject, start time

Macro to resize all text boxes in a powerpoint presentation

I exported a PDF as a powerpoint presentation. The PDF had A4 pages, while the powerpoint has wide slides (16:9), and the text has ended up being centered in th

Excel 2010 VBA ActiveChart.SetSourceData Failed

I have a Excel VBA application which has been working fine in Excel 2003 but failed in Excel 2010. The relative codes are Public Sub Create_Chart Dim c

VBA ListBox RemoveItem Unspecified Error

When I try to call remove item on my listbox, I get '-2147467259 (80004005)' unspecified error. My rowsource property is blank. I add the items originally thr

What are all the properties that I can assign to "with Outlook" with VBA?

In VBA we can create an object to run and manipulate other applications. I am trying to do a few jobs in Outlook with code in Excel. Eg - With OutMail .Su

Make copy-paste code, triggered by button at different locations, faster

I made a model for our project managers to follow the economy in different projects. A wish for the model was the option to add rows into the matrix I made with

Script to Download xls files embeded in a .msg file

There are 1000s of .MSG files on my d drive and each containe an XLS file,as attachemnt. Is there any way to download these xls files from these .msg file usin

Replace cell value with image

I have an Excel file with a table containing values O and G. I want to replace O with an orange icon and G with a green icon How do I read each cell for value O

Outlook 2010 GAL with Excel VBA

I have the following code to get contacts out of Outlook from Excel: Public Sub GetGAL() Dim olApp As Outlook.Application Dim olNs As Outlook.Namespace Dim ol