Category "vba"

Importing Data from a Password Protected Website

I've the following macros working independently of each other (sort of). I need them working together. First I import data from a URL that points to a CSV file

Insert rows based on cell value and swap cells

I am working on a project to do the following. Data I get from ERP: After running the code it should look like: I want to implement this logic If there is a v

Change Values & Color Based on Day

I have this timesheet and based on a day in the row (F8:AJ8) I want its whole column to highlight with yellow (Color index = 44) if it = "Fri" and change their

Write each row individually and add date in empty column

I have the following code in an Excel VBA module that looks up the ProjID named cell on the worksheet, selects columns needed for output from dbo_Proj_Dash Acce

Change the Outlook account where to create a searchfolder with advancedsearch method and search object save method

I am using the Save method of the Search object that is returned by the advancedSearch method to create a Search Folder. As I have multiple accounts in my Outlo

Configure glow/shrink animation to a text

I want to give glow/shrink animation to a text in PowerPoint using VBA. I can not configure it to give size 110% (it takes default size 150%) & also want a

Configure glow/shrink animation to a text

I want to give glow/shrink animation to a text in PowerPoint using VBA. I can not configure it to give size 110% (it takes default size 150%) & also want a

Is UserInterfaceOnly=True setting now Saved with the workbook? (Worksheet.Protect Method)

It was known that UserInterfaceOnly:=True setting was not saved with the workbook. So every time a Wb was opened, the Worksheet.Protect method had to be used wi

Save mail with WordEditor as pdf with header

I would like to save a mail body and header just as if it were printed by Outlook or PDFCreator. The sender, cc, bcc , time, to, subject are data that must be i

Listbox option to send to all or specified recipients

I looked through a few posts but it didn't help. My code merges same emails into one email and also consolidates a table. Works if I were to send to all. Sub Se

Getting emails of recipients, and those in the CC list through VBA in Excel

I have zero experience in VBA coding, but I currently have a functioning code I copied somewhere online that successfully extracts certain details from each ema

Add filenames to an array and pass it to a sorting function as a string argument

The goal is to provide a folder choosing dialogue to read file names and paste them into the open Word document with the file names being the title (above the p

How to find the parent userform of a control in VBA

This code is part of a class module. Private pImg As Image 'For example, pImg = U_Cursor.Img Public Property Let ItemID(ID As Byte) pImg.Picture = LoadPic

Find element using Selenium Basic for VBA

I'm trying automate data entry using Selenium Basic for Excel VBA. I've been able to log in to the website via locating the necessary element selectors on the l

Save my WB based on another workbook name in VBA

I have a code which is doing following: Prompt to choose external workbook Copying all the data from that wb Pasting exactly 1:1 in main wb Close and Save fr

VBA Get Max of First Dimension of Array

I need to get the max of only the first dimension of the array. WorksheetFunction.Max(shifts_array) returns the maximum of all dimensions but I only need it of

Implementing an Excel nested function or VBA code for numbering a table

I need to write some VBA code which could give me the result in the "Sorted Numbering" column in the below picture: The logic for the sorting is that filter th

How to to specify a word plus a date in a cell?

I want to specify a word plus a date in a cell. Sub CurrentTestCell() With Range("i2") .Value = ("Test") And Date .NumberFormat = "mmmm yyyy" End

Export a 'PPTX' format file to 'SVG' format files using VBA in the PowerPoint Application

A 'pptx' format file should be able to export to a 'svg' file or some 'svg' files (just one slide to one 'svg' file) in the latest version of PowerPoint(the fun

Why do VBA and Excel disagree on whether two cells are equal? [duplicate]

I am trying to compare two cells in a table: The column "MR" is calculated using the formula =ABS([@Value]-A1) to determine the moving range