Category "excel"

Writing To A Range Using VBA array

I have a script that pulls the first cell value of a table from a database and adds it 10 times. I want to write that list to excel. Here's what I have so far:

Formula to count number of people of a certain age range and gender

I have a column for age and a column for gender. How can I get the number of people with ages between 0-18 and with a gender of "male"? For example, with the fo

VBA Create a macro to match items in a bank reconciliation - payment booking/ Bank debit

I have an excel based bank reconciliation that I'm doing a manual matching like the example below using ABS or conditional format, but I need to do a faster mat

Outlook GAL fails to be top-most window when called from VBA UserForm

i have about ten responses from StackOverflow open but none of them quite answer my problem. i have created several UserForms in Excel VBA for this particula

Importing multiple Excel files with multiple sheets and creating a new column based on sheet's names

I am trying to upload multiple Excels files (same format) and each of these files has multiple sheets, in nature each Excel file has information about a hotel b

How to read all the rows of the excel sheet and run in Selenium test script using C#?

I need help reading all the rows from excel sheet as a test data in my selenium test case. I can read only one row of an excel sheet with the following code.

Trying to create a macro to perform 100 iterations and paste resulting values (2 adjacent row cells) to a 2 x 100 array

I have a worksheet that uses randomly generated numbers in calculations to produce results in two adjacent cells (let's say A1 and A2). I am trying to perform

How do I loop an input box one additional time if criteria is not met?

I’m trying to create a series of input boxes that will prompt for more information before executing the rest of the code. I’m stuck on the looping a

MS Access to MS Excel export with VBA coding in MS Excel where having issue

Below is my code where I'm trying to export a MS Access query output to an Excel file and then editing the Excel to create a pivot table on a new sheet. The cod

Apply filter from a master worksheet to multiple worksheets

I am trying to apply filter from a master worksheet to multiple worksheets in the same workbook. eg. There are 3 worksheets in the workbook, with following fi

View Current Month Name as the first Row at top of worksheet whenever it re-opens

Whenever I open the worksheet, I wish the current Month name row to be adjusted at the top of worksheet. I entered month name in cell E2-January, then after 115

Export query from MS Access to Excel file and make pivot tables in excel file

I am trying to export a MS Access query to an Excel file and then create pivot tables in the excel file based on the data dump extracted to the excel file. My i

Dynamically creating rows in Excel sheet with Apache POI

I'm writing a program to read a large xml file and create an excel file from it. The attributes of each node will be the column headers in excel file. I created

Trigger sub with argument with Application.OnKey if key is numerical

In Workbook.Open() I have an Application.OnKey for every letter on the keyboard and all the numbers. The letters open a sub LetterPress(L as String) Example for

How to turn general data written as fractions into 3 place decimal numbers. Replace " 0." with "."

I'm trying to turn general data written as fractions like 3/4" or 13 7/32" into 3 place decimal numbers such as 0.750 or 13.219. I have a working table replacem

How to bypass code if criteria don't match?

The code works when the criteria exists. I get an error when the criteria doesn't exist. ' Define constants. Const srcName As String = "wfm_rawdata" Const srcFi

Extract text string from undeliverable email body to Excel

I am trying to extract the email address from each individual undeliverables email body. The email body would be like: ----------------------------Email-------

Opening Userform only without flashing Excel Window

I know the method as Application.Visible = False and Application.Screenupdating = False When opening the file, I want the user to see only the userform. The

Excel Interop to open excel with macros disabled

Is there a way in C# to switch off macros in excel before loading an excel file. I am loading the excel file using Excel Interop. All I can see is solutions for

Save as pdf using ClosedXML

Does ClosedXML have any function that can be used to save an excel file as PDF? Currently i am using ClosedXML to create and populate the excel file and then u