Multiple VBA Worksheet Change Events
I'm still new to macros and trying to combine two change events into one successfully, any help would be appreciated!First Change Event:Private Sub Worksheet_Change(ByVal Target As Range) If Not...
View ArticleExcel VBA countifs worksheetfunction
I am using WorksheetFunction.CountIfs to count records on Sheet2 depending on certain criteria.The code I'm using is:Dim wksdata As Worksheet Dim xyz as String Dim Time as String Set wksdata =...
View ArticleHow to use "WorksheetFunction.Match" as array with variable range
I am trying to implement a .Match function as an array with a variable range in VBA, to find the first non-zero cell in a specific range.However, currently I only receive a runtime error 1004. Set...
View ArticleError selecting all active cells in a sheet
Haven't done any programming in 10 years and are now trying to automate some administrative work. I need to create a CSV file from a certain data set. Running below code stand alone using this code to...
View ArticlePython - Linking columns in Excel for sorting
The problem that I have to solve:I'm trying to automate several processes in excel. I'm currently stuck on the first one. (Also I'm pretty weak at using excel so I apologize in advance if some of the...
View ArticleCalculate value in an Excel userform textbox based on values in another...
I have some textboxes on a Userform the values of which I would like to use to drive the calculation of a value which populates another textbox on the same Userform. I'd like to use a textbox exit...
View ArticleHow to cache the formula cell by using Apache POI
I created code as below to create excel file and calculate and get cell value after because I need to use function in excel.(this function is not supported by apache poi, so I think I have to read...
View ArticleCOUNTIF FormulaR1C1 with calculated relative position
BACKGROUNDI have a script which inserts a column after every existing column in a table which needs to insert a COUNTIF formula into it where the range and criteria are based upon two different loop...
View ArticleVBA Macro excel
I am trying to create an Excel Macro to remind my self for all customers that have not send any update within 30 days .The code below has this problem:After i open the excel file that is related to...
View ArticleUnlocked cells goes back to locked whenever I drag and drop a link from a...
I have a protected spreadsheet where some cells are unlocked to allow users to fill them up. The problem is that whenever they drag and drop a hyperlink from the browser to the unlocked cell somehow...
View ArticleChecking if value changed for unique values in excel
My excel looks like this:datestamp page revision 2020-02-10 www.google.com 43218 2020-02-10 www.yahoo.com 44476 2020-02-10 www.bing.com 42357 2020-02-11 www.google.com 43218 2020-02-11 www.google.com...
View ArticleOpening another workbook in the background and refreshing causes it to hang
I have some code in an excel workbook that opens up another workbook in the background and calls refresh all. This works fine with some workbooks being opened in the background. But I have run into one...
View ArticleVBA Add data validation to B and C if value in A using "loop"
trying to avoid having a large file size by having data validation in every cell and changing from key cells but if value is added in Cell A2 add data validation in Cell B2 with my list. I have the...
View ArticleChange the colour and/or width of active cell in spreadsheet in Microsoft...
In Microsoft Excel(in mac), it becomes very difficult to see the active cell for large spreasheets,It would be very handy if we can make the active cell with a contrast colour to the table, or increase...
View ArticleSort columns - it possible and sort the columns so that I always get them the...
When I export a report to excel it comes with the column incorrectly sorted. is it possible and sort the columns so that I always get them the way I want them every time by searching in row 1. See the...
View ArticleSumproduct Sum with OR condition then subtract the total sum of different...
Is there a possible shorter way to perform this task=SUMPRODUCT(--(J8:J5000=D3)+--(J8:J5000=E3)+--(J8:J5000=F3)+--(J8:J5000=G3),I8:I5000-B8:B5000-C8:C5000-D8:D5000-E8:E5000-F8:F5000-G8:G5000-H8-H5000)...
View ArticlePHPExcel not saving decimals when comverting from XLS to CSV
I have an issue using PHPExcel library.When I try to convert an XLS file to CSV, numbers are cast to integer if the decimal part is hidden by the cell format type, and so decimals are not saved in the...
View ArticleHow to copy data range from an excel worksheet to another using Openpyxl
I'm trying to copy a range of data based on row coordinates from a sheet to another. I have a list with row coordinates tbrow = [1, 34, 52, 75, 101]What I would like to do is to copy the row range...
View ArticleHow to avoid using Select in Excel VBA
I've heard much about the understandable abhorrence of using .Select in Excel VBA, but am unsure of how to avoid using it. I am finding that my code would be more re-usable if I were able to use...
View ArticleEXCEL concatenate all text in cells between two borders
In my MS Excel spreadsheet, the Border is used to determine the end of some related data. I want to convert these related cell`s content into one cell. I want to do it by concatenate the texts inside...
View Article