VBA: Is there any way to detect if DELETE key pressed?
Is there any event to detect if DELETE key pressed on a cell in the sheet?Here is my sample code:Public Sub Worksheet_Selection_Change(ByVal Target As Range) oldValue = Target.Value End Sub Private Sub...
View ArticleUsing VBA to searching for specific headers name, and grouping the data of...
In a big file that I am punctualy receiving, I am looking to reorganize data in a new sheet of the excel file. I am thus looking for specific headers names and either renaming them and copying data or...
View ArticleApplication-defined or object-defined error message after the macro is executed
I've encountered a strange thing: I've joined three workbooks: Personal Data Tracker, Global Tracker and the workbook with pivots and charts. The logic is as it follows: the user clicks on a button...
View ArticleFormulas within Named Range changes when opened in foreign language version...
When opened in an English language version of Excel, the following definition for a named range works just fine:=OFFSET('Summary Data'!$B$9,0,0,TotalStops+1,SummaryDataColumns) However, when the same...
View ArticleHow to select a text box and resize using VBA?
I am trying to resize the text box size using VBA. But to do that I have to change the rectangle number in the VBA every time which is not serving the purpose of VBA. I need to resize the selected text...
View ArticleExcel Data Validation marked with value in another column
I have a list of items in column A and for some of the items, column B has value "Y". How do I only include the items of column A marked with "Y" in a data validation list?I have tried this in the data...
View ArticleHow to set excel sheet name in BIRT API?
When I use birt api to export excel, the excel's sheet name is default set to Sheet0. Is there a way to custom sheet name in birt API?
View ArticleExcel code to sum the last 7 cells in a row but if one of the values is 0...
I'm using Excel Office 365. Col A = Total hours Col B Name Col C-Y head.Date/Day entered hours worked. I am trying to sum the latest seven days hours entered and totaled in column A. I have completed...
View ArticleHow to categorize a bunch of numbers in Microsoft excel
I have a column in excel containing a bunch of numbers. I want to categorize them in some groups according to their ranges. For example, group 1 : 300-500 , group 3: 500-700 , ... and count the members...
View ArticleWriting to an Excel spreadsheet
I am new to Python. I need to write some data from my program to a spreadsheet. I've searched online and there seem to be many packages available (xlwt, XlsXcessive, openpyxl). Others suggest to write...
View ArticleIn Excel SUM return 0
I'm working on an Excel spreadsheet and when I use a SUM formula in a cell and then I select columns, it returns 0.Please help me...
View ArticleAccounting references in VBA for different versions of office
If users are on 64bit Office with Office 16 the below code works fine but how do I account for users on different versions and 32bit also?Sub Add_References_Programmatically() Dim VBAEditor As Object...
View ArticleDebug jumping lines after file dialog code
Is this a known bug, or something specific to me (I'm using Excel 365).When I skip to the next line (F8) of code after a file dialog show call (selecting a folder or cancelling) it seems to turn off...
View ArticleAllocating the timevalue from a cell entry
I am trying to make sub's in vba to repeat a process processC after some time as designated in the Cell K8 = 00:10:00 (text format).Dim RunTimer As Date Sub repeatA() 'RunTimer = Now +...
View ArticleHow do I compute Legendre function in the Microsoft Excel formula bar?
I have about 300 rows of data which I have prepared and the final stage requires me to compute Legendre function of the 1st kind from data in three columns. Is there a way to achieve this? Thanks guys.
View ArticleGet Average from multiple columns from .csv files and save it to a master...
Hi to all the community. My question is this: Is there a way to retrieve the average from multiple .csv files and paste it to a master sheet in excel using a macro without the need of opening the...
View ArticleSupress "true" statement & skip blank rows when importing text from Excel to...
I have reached a few steps along the way to set up a standard template for Outlook emails in Excel 2016.I would like to import comments into my email from the B column if the A column in the same row...
View ArticleCount all Outlook emails from each sender then display by year and month in...
Is there a way I could (in Excel) count all Outlook emails from each sender then display by year and month in Excel?I have been trying to edit the code below, but I am not sure if I'm on the right...
View ArticleSolving a MultiPeriod problem with Solver
I am trying to use solver in order to maximize my profit with the least amount of bonds. I also need to make it to where the sumproduct of the number of bonds and the price of the bonds need to be...
View ArticleRun Excel VBA in Access
I have been researching this a great deal and I am not finding any leads to how this would work.I have written code in Excel that I want to run in MS Access. I have pasted the code I wish to run in...
View Article