Category "excel"

Export Excel tabs and set page formatting at same time

I have some existing VBA code that works great for exporting all tabs in my workbook as individual sheets named by the tab name. I just want to be able to set

How can I auto populate several excel sheets from other Excel files

I am currently working on a power bi dashboard that uses an excel file as a data source. I want to auto populate the excel file with new values from existing ex

Pivot table data source automatically update

Pivot table data source Please see the above image. I am trying to dynamically update the pivot table data source whenever a new sheet is created. Essentially I

Excel add image to workbook from URL using shapes.AddPicture VBA Macro

So I have the following code that works correctly and uses a column with URLs to add the images to the next column. The problem being that if you send it to so

How do I avoid IFERROR testing for empty arrays in FILTER function?

I want to count the results of a FILTER in excel. Usually I do something like IF( IFERROR( SUM( FILTER( range, condition)

Converting .xls to .xlsx files with VBA doesn't seem to reduce size

So, I have a bunch of old .xls files that I want to convert to .xlsx files for the sake of disk space economy. Doing it one-by-one is out of the question. I see

Is there a way to change the lookup_value of the Macro code with the identified cell address?

I need to change the lookup_value of RC[-2] with the address Cells(3,2) on the macro code below. Range("D4").FormulaR1C1 = "=VLOOKUP(RC[-2],'[Reference Workbook

Runtime error 1004 Method OnKey of object '_Application' failed

the following code causes runtime error '1004' Method OnKey of object '_Application' failed! Any suggestions? Sub MyAchieve() Dim col As Integer Dim row As

VBA in Outlook to pull specific data into excel

I need some VBA code in outlook to save specific lines of data from emails as per below into an excel folder - see sample excel table below. I need the code to

Process to Import specific text in excel with VBA

I'm trying to import many tables into excel (with fixed width option selected) and I would like it to paste it to certain areas as a function of "i", see below:

finding cell value and delete it in excel vba

I want to return the value of the cell it's found in VBA and clear all of it's content with another 3 rows below it as well, but I'm currently stuck. I can find

Excel Time Conditional Formatting

I have exported a csv list with start tine and end time. After that I have created a new column with the duration differences. How can I make the cell red for &

Saving xlsx file in csv tranform simple quote to triple quote (since today)

Since today, excel interprets the data of my xlsx file to add additional quote in the csv file. It's anonying since I want only one quote for some columns and n

How can I call a subroutine after an error?

I'm working on user-proofing a VBA app in Excel and I realized I'm constantly rewriting a lot of the same code to create specific error messages that are fed st

Office add in excel- Combination of task pane and udf

i created an office add in for excel (office.js / 365). The add in creates a sheet with a form. The user put values in the sheet, clicks on the button in the ta

How to parse a JSON/dict-like value from an Excel sheet and copy over to another column?

I have an Excel sheet, where data is entered in this format: {"id":"03CD2B3C22558D83","imp":6667, floor:7777} How can I in python read and extract a certain va

Iterate through rows and columns, compare dates and if statement true sum and print in new column

this is my first question here and i can't find a solution that works for me. I have a set of data. i need to compare the date displayed in cell 2,2 (until 2,10

Count/Sum a column but exclude #N/A

Currently using the following forumlas to count the number of records in all of column Z that does not have #N/A but it does not work. All the rows in Column Z

Excel Chart not updating correctly with VBA

So I have made a macro to export a chart and then import it into a userform as picture. Import/export is working fince, byt the chart is not updating when the d

How to upload whole Excel range of data to SQL server using VBA (without Wizards or looping row by row)?

I am trying to upload a range of data in excel (same structure as target SQL table) to a table in SQL server using VBA. I do not want to loop row by row but tra