Category "vba"

How to remove special characters from columns D and F?

I have data in column D and F which might have special characters (, . / + &() etc.). I want to remove the special characters if any and trim clean the colu

Clean trim cells from column A and delete entire row with blank cell in column A

I am trying to trim clean column A then filter the blank cells in column A and delete the entire row based on blank cell present in column A. Column A has a fe

Bulk Move All Mails From An Outlook Folder To Another Folder

Can I move all the mails (that category is blank) from an Outlook folder to another Outlook folder at once like copy and paste not through loop, move bulk mails

Returning file name with Left(file.Name, InStrRev(file.Name, ".") - 1) generates error number 5

I get error number 5 in (ActiveSheet.Cells(Rows.Count, 3).End(xlUp).Offset(1, 0) = Left(file.Name, InStrRev(file.Name, ".") - 1) The purpose of this code is

Copying data from multiple worksheets on a workbook to other workbooks that each have the same name as the current worksheets while they are closed

I'm quite new to VBA. I have a workbook named Fruit. It has multiple worksheets such as Apple, Orange, Grape and so on. In a certain folder, I have workbooks wh

How to run a compare though multiple sheets?

I'm trying to run a compare though multiple sheets. I get Runtime error 9 subscript out of range Sub Comp_TEST() Dim ar As Variant Dim var() Dim i As Long Dim

Checking a string value to return a range from another worksheet then add to .To line in email

I am trying to get email addresses from a worksheet(Sheet1) into the .To line for an outlook email based on the specific string value in the main worksheet. I h

How to use Evaluate for dates?

How do I evaluate dates, as seen as below? According to this list, https://www.techonthenet.com/excel/formulas/index_vba.php, all the functions in the formula

Pass a calculation with VBA from Access to Excel

I´m exporting data to excel with the columns like ID Product Quantity Price Sum Our vendors fill in the Quantity and Price. I want to pass a simple calcul

range1.value = range2.value Very slow VBA

I'am writing simple code like nextCell.Value = dateJour.Value, were dateJour is a date located in a cell in the workbook. When I loop (about 100 times) it takes

Split a cell into multiple rows based on line break and format data elements

The datasets are small (10-25 lines), but I have to run a lot of them and it's getting to be a waste of time. The original data looks like this: The output need

Split a cell into multiple rows based on line break and format data elements

The datasets are small (10-25 lines), but I have to run a lot of them and it's getting to be a waste of time. The original data looks like this: The output need

How to add row and copy formula from a cell and paste into a cell of the new row?

I made a button that adds a new row above another row where the value of the cell in column C is "add row above". I did it like this because there is a formula

VBA Mapping Sharepoint Drive to File Explorer To Loop Through PDFS

I have a script within an excel that needs to loop through whichever folder its in on the Sharepoint, and attach it to an email. As I understand I need a direct

Find Duplicate Values and Export Rows into New Sheet

I have two worksheets, one with all of my raw data (Base) and the other housing information submitted from a form (Sheet 1). I am trying to find any duplicate I

Loop to color row when string found

This works when run the first time. InStr(Worksheets("tickets").Cells(i, 4).Value, "Provided feedback") Then Upon the second time, it will not only find it's s

Issue with worksheet object and LoadPicture in VBA

I have been working on an excel macro and have come across an issue that doesn't make sense to me. I have on two of my sheets, (Sheets("Printing Sheet") and She

How to select a card in a set of stock cards before entering data?

I downloaded a macro from Get Digital Help: Sub AddText() Dim Lrow As Single Lrow = Worksheets ("Sheet 1").Range("B" & Rows.Count).End(xlUp).Row+1 Workshee

Click on hyperlink when scraping data from a table

I am trying to scape data from a web table. I login to a website, which gives me access to a web table. That table contains a hyperlink column (Id) like the exa

Automatically open a copy of the attached file when I open a specific message with subject on specific outlook folder

I created a custom folder on outlook with name “MyTemplate” and inside that folder an email message with subject Auto Plan ( It is a template email