Category "vba"

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

Open A File From Dialog Box

I am trying to validate the active workbook is the proper workbook from the proper folder in our shared drive. Otherwise, the user will save data and it will no

Finding the Column

I have an Excel file with more that 5 columns where cell values are TRUE or FALSE. If the cell value in every column is TRUE then in 6th column cell enter "No c

Identifying multiple Peaks and trough in the data set of % utilization values ranging between 1 - 100

Dear VBA and Excel Gurus, I have a series of data in one column of excel sheet and i want to identify peaks and troughs in that data set having % utilization va

How to Get web data based on link in excel cell?

I'd like to create an Excel sheet, where in one column there is a link to a website like this: Link in column A where there is a MAC add in that url that chang

Add item to SharePoint list

How do I add an item from an Excel file to a SharePoint list? I cannot use Access as an additional step here. Within Excel 2019 I run a macro and part of it sho