excel macro to execute multiple query & fetch records
As of now i have only one standard database connection (via menu or toolbar) which is working fine. however i would like to fetch records for three different period ( each sheet can have different...
View ArticleSummarizing debit and credit in Excel like the following picture
I have input data like this : want the output like this : How can be like that? in the output image, credits have been summarize by date and placed at the end of the date. Thanks..
View ArticleReading the position of the comma using instr function in number with a lot...
When i use instr on numbers with a lot of digits, it shows first is 3 and second is 14 on the immediate window. Anybody knows how do you read it in this case?Sub read() Dim sl As String Dim first As...
View ArticleSave attachments from IE and save it in the specified folder
I need help with clicking a button using vba to download the files Here are the steps to what I'm trying to do: Log in web site: www.abc.com download attachments from the download attachments button....
View ArticleHow can I export GitHub issues to Excel?
How can I export all my issues from an Enterprise GitHub repository to an Excel file? I have tried searching many Stack Overflow answers but did not succeed. I tried this solution too (exporting Git...
View ArticleHow to determine if an activex checkbox is checked?
I have 98 checkboxes embedded in my worksheet (Orders).I want to select certain checkboxes then click a command button that will iterate through the checkboxes. If checked, I want to send the...
View ArticleExcel 2010 How to make multiple scatter charts from same data
Have a data set from which I need to make several scatter plots (date vs. value). Each charts is different, based on different filters. To make one chart, I can filter my data, and then chart it. But...
View ArticleHow to code in google sheet that retains the selected cell reference even...
Need help in updating the value of the cell automatically based on the last value inserted on the sheet.Basically, I just wanted the sheet to automatically update the balance (row 1, col I) every time...
View ArticleText file to excel file C#
I can export to this excel over two different text files on this code. The code writes data to two different cells. But what I want is to split a text file. as below example: Over a text file example1...
View ArticleExcel file not being downloaded when function is called via ajax method
SituationI am working on an application where I can have a grid with X items, and each item has a print button. Clicking this print button allows me to call an ajax function which passes the ID of the...
View ArticleCode that counts cell with green background value = 0
can someone tech how to make a codes that counts cell with green background and has a value of 0?here's my codePublic Sub FormattingCells() Dim lastRow As Long, i As Long Dim total As Integer lastRow =...
View ArticleExcel VBA: run-time error '1004' subtotal method of Range class failed
I recorded a macro (and manually added a few codes) to copy data, sort it, subtotal it, and to format some of the subtotal lines. The macro works fine when adding rows to the raw data sheet...
View Articlehow to get a file that contain a particular string in file name
i am trying to get a file that contain a particular string in filename. for example there are several files in directory ,i want the files who is having the "index" or "export" in filename.Any piece of...
View ArticleHow to create pie & bar chart with Apache POI with XDDFDataSource values from...
I'm new in Apache-poi, I'm working on a java project using Apache-poi to export data to excel spreadsheet.currently I am able to draw pie chart with fixed values. I need to create a pie-chart in java...
View ArticleIs there a way to change cell text color without using code in excel?
I need this:I have some names and numbers in multiple cells and wanna merge them into a single cell, but I want to change only phone numbers' colors to red. Also, I don't want to use any macro or VBA...
View ArticlePopulate VLOOKUP formula using VBA for all rows that have data in column A
I have a data set that includes scores for individuals, but the report lacks team manager assignments. I have a separate table that contains team manager assignments. The tricky part is that people...
View ArticleExcel VBA: Collect data from cells and assign to a range. How to avoid vba do...
I want to collect data from a large worksheet and paste to a target range.The data mix with number and number like string (ex:"0050").I try to use variant array to store the data and assign to a series...
View ArticleCorrect worksheet selection code throwing up run time error
I created a file a couple of years ago that I update and improve as I use it, it has always run fine, however today it throws up the below error: The error is linked two specif bits of...
View ArticleCreate a list with values from multiple Excel sheets
I am working on VBA code that will run through a dropdown menu in Sheet "voorblad".For every value in the dropdown menu I want to copy the value "Voorblad".range"K9" and "Calculation".range"G35" and...
View ArticleIf the number is at the beginning of string 0, use formula one, if the number...
How do I write the name of a sheet with zero in cell D15 and at the same time name the sheet with a number beginning with zero?I want to name the sheets by column A in another workbook. At the same...
View Article