Category "vba"

Assign a value to a "hidden" input webelement, in SeleniumBasic for Chrome

I have to migrate a web automation program from IE controlled by Excel VBA to Chrome using selenium basic in Excel VBA. The website itself is not public so I ca

Shell using path pulled from cell in workbook using VBA

My code runs a model in R directly from Excel. I want to simplify installation so instead of: path = """C:\Program Files\R\R-4.1.1\bin\Rscript.exe"" C:\Users\di

Inserting hyperlink into Word bookmark with AutoHotkey

I have an AutoHotkey script that inserts values into various bookmarks in a Word document. When inserting a hyperlink (email address), it inserts text. How do I

How do I pass a cell value, for the Subject line, to code called to create mail?

I am gluing pieces together to automate sending emails with each new line added to an Excel sheet. I want the subject line to contain the text of a cell in colu

How do I hide a range of rows by getting the start and end row values from user input cells?

I have a sheet of 1,000 plus rows. I'm trying to hide all rows that match the values I input into cells A1 (the starting row in the range), and cell A2 (the end

How to use ServerXMLHTTP60 and a client SSL certificate in Excel using VBA?

I cannot get it to work in VBA - Excel. I use the same header and XML-body in Postman - fine! Good response. I need to use a client certificate to identify myse

Call COM Add-In Function in VBA

I want to call the "Refresh" function of the Microsoft Dynamics NAV Excel Add-in which has a button on the ribbon using VBA. I tried recording a macro when clic

Populating range from array

I have a worksheet change event that runs when three adjacent cells in columns C, D and E are filled with any value, which puts the date of entry into a separat

How to get autosuggestions for Excel worksheets in Word VBA editor?

Normally when using the VBA editor, code autosuggests from available methods.properties for whatever object being referenced. I'm trying to pull data from an Ex

Autofilter error: the object invoked has disconnected from its clients

I've seen this error message on other posts but none matched my situation. I have a few AutoFilter functions done one after the other checking if the target cel

Outlook VBA Stumbling Over "Undeliverable" Report

I have some VBA that works as follows. For messages that are selected in Outlook, it marks them as read, assigns a category and moves them to a subfolder. It

Why is this VBA Worksheet_Change not firing when a cell is edited by the user?

I am trying to create a macro that inserts an image into one cell when the user enters specific information into an other cell. Right now it's working but not r

Why is this VBA Worksheet_Change not firing when a cell is edited by the user?

I am trying to create a macro that inserts an image into one cell when the user enters specific information into an other cell. Right now it's working but not r

How to move UsedRange into Array for processing tasks and then copy back to the sheet?

Regarding this question “combine or merge cells with the same values vertically and horizontally” Link, the provided answer (edited one) it works ,b

Using a VBA script to validate if an excel workbook is protected and read what password was applied to it while doing so [closed]

I am writing for an application that validates if users perform tasks successfully in various Microsoft applications. One of these skills is

Out of Memory Error when running Drill Down Script

The purpose of the macro is to avoid creating a new worksheet each time a user double clicks / drills down on a pivot table value. Instead the script copies the

Excel Single Use Dropdownlist

My problem is the following. I have two tables. The first table is a guest list where the information on who is the guest and how many beds he need is stored. S

Overflow when looping through SQL-inserts for an ADODB.connection

I am trying to insert real-time data from a financial service provider into Excel, which can only be fetched with an Excel-plugin in blocks of roughly 100,000 v

How to multiply a range of values in Excel by a scalar variable using VBA - Answer to similarly asked question is not working for me

I have implemented this method to multiply every array element by a number held in a variable, it works, but I believe it is terribly slow. Is there an accepted

How to make custom references in an Excel row with specific rules ? with VBA or Excel formula

I Want to customise automatically in Excel a Reference number according to the content of the line it is representing. I have a table for test procedure that lo