Category "vba"

Paste Excel range in center of body of Outlook email

I copy a range and paste into Outlook email with signature. I want to reflect the range in center of body of email. Dim OutApp As Object Dim OutMail As Object D

How to clear contents of clipboard?

In Excel sheet Products, in a table named Products I've example data. I want to copy the three leftmost columns to the clipboard, next save it's contents to fil

How to take two cell reference from another sheet in vba

I am not able to take the reference from column AB and AC given in sheet ("UPDATER") to sheet("Historical_vol"), can anyone please confirm what am i doing wrong

Changing diagram size to specific size in mm with VBA

I have an existing Excel file I need to work with. It contains a line graph where measurement results are plotted. All the referencing is done via names. The gr

Json scraping options VBA

i am trying to scrape date from https://www.jjfox.co.uk/aj-fernandez-bellas-artes-maduro.html using Json parser with the following code. the code does not howev

vba - get weeknumber

I would like to get the current week number. I tried this: MsgBox (Format(Now, "ww", vbMonday)) The result: 3 But it has to be 2 Where is my mistake?

Closing Excel via VBA

Long ago I had a macro that would open some workbooks, do some fiddling, then close - all fully automated, called from the commandline so I could batch file it

Split String Loop Email Address Separet A New Row [closed]

I am trying to split a string and create a loop for going through the Cell I Want Only This Code Results Column Wise I want A Row Wise Insert

VBA function to get page's URL to extract gps coordinates

I have a little problem, thanks for whatever help you might bring :) my goal : i want to create a vba function that receives an address and returns the gps coor

How can I get the full source (HTML) of a web-page with vba?

I am trying to automate a work task using excel VBA. I can't seem to get all the source code. I created this simple code to test it. dim IE as object Dim S as S

Finding and opening pdf according to the files in the cells with vba

I want to open a pdf according to the codes in a table that changes daily from the archive with thousands of files. It has to search in two ways. Search by BA22

Outlook cannot perform this action on this type of attachment

I am trying to save attachments from an email. I get the error message Outlook cannot perform this action on this type of attachment Using Debug.Print outAtta

Validation with custom formula in string variable

I'm struggling with data validation for the range of cells in a For loop. I want to use a custom formula with COUNTIF to check for unique values. I found exampl

Outlook - Auto Email Saved to Local Folder Once Sent

So sorry if this has been asked before, I have a need to save down each email I send into a local folder (These are then archived each month) and I have been us

Find e-mail by body and sender

I am trying find e-mail that matches body text and sender. Each day I check if 300/400 emails were already sent. I need to iterate through more than 4500 emai

Outlook Appointment isn't showing Attendees that have been added

I'm having some problems with some pieces of code that I've Frankenstein'd from the web. I have a Word document that uses a command button to run a piece of cod

Invalid forward reference, or reference to uncompiled type

I'm currently using a code to update a file with a loop running through multiple sheets. Up until now, the code ran smoothly. On today's run, I encountered "run

List of data to copy into another sheet and generate PDF

I have a list where I have to copy date in each row in another worksheet and Save it as PDF Data is in each row in "Instruction" tab, that need to be copied in

Excel VBA macro slows down unpredictably, usually at DoEvents

What can be happening that slows down Excel to a crawl, sometimes for a minute or two, sometimes for hours, and its workload is spread across calls to DoEvents?

Error: "Sorry, we couldn't find <Add-In Name>. Is it possible it was moved, renamed or deleted"? [closed]

When opening Excel it looks for an add-in that I have removed from the file folder. It gives me the message that it can't find it, of course,