Calling the UserForm_Click subroutine
I have a VBA userform and I would like it to close if the user clicks the mouse anywhere (preferably anywhere on screen, but I'll take anywhere within the userform as a workable 2nd best option).Here's...
View ArticleExtract Multiple Values From Same Cell
I have a spreadsheet of products that I need to make into an XML for importing purposes. There are 1000's of lines and one of the cells has the product sizes combined into a single cell with sporadic...
View ArticleHow can I load a library in R to call it from Excel with bert-toolkit?
Bert-toolkit is a very nice package to call R functions from Excel. See: https://bert-toolkit.com/I have used bert-toolkit to call a fitted neuralnet (avNNnet fitted with Caret) within a wrapper...
View ArticleAdjusting a function which pulls a table from a web page to pull only a...
I've got a weird project I'm trying to pull off. Essentially, I have a tool that will create an extensive spreadsheet of the entire inventory of a specific section of a warehouse. It lists off their...
View ArticleHow can I learn to use R to do an excel V-lookup function that retrieves data...
I am trying to learn how to use R/R studio for a project. Some of the initial tasks I will be using R for are described below, and I would be very grateful for a resource that teaches me how I could...
View ArticleIndex Match on 2 Million Records covering 10k rows
I have a Normal Table, the Match Column is what is brought back with the index match formula, the ID is what we search forID | Name | Group | Match 11 | Bob | Red | **2020** ---- continues for 10,000+...
View ArticleExcel/Google Sheets: How to find (and count) first occurrences of a string
I have a list of purchases in a spreadsheet (CSV, so I can do the operation in Excel or Google Sheet, doesn't matter), so single lines that include data like:Date, Customer Email, Customer ID,...
View ArticleCut the shape (image) and paste in another sheet with custom ID
I have a problem.I would like to cut my shape and paste it on another sheet with the specified ID. Next I want to cut from that target sheet and paste it in the mother sheet (move back).My code looks...
View ArticleChanging a cell value based on today's date
I have not done VB for excel before, but have experience in some other languages.I am looking to have the person input the amount in Todays Excess and have it automatically key that amount on another...
View ArticleCode to return list of file names in a folder and additionally return text...
I am trying to write a script that will read all file names in a folder and list them out, Also at the same time read read text 35th to 45th from first lineSample file data...
View ArticleCreate subfolders based on cell value and copy images to same folder
I am working on a big project and the ability to change the code stopped at this point. So help is needed please. The main folders have subfolders and MSR files inside which are related to eachother...
View ArticlePython Xlsx writing format advice
I've created a list and have created a for loop to iterate over each item in it to print it to a cell in excel. I'm using openpyxl. When i first started using it using easy statements like:sheet["A1"]...
View ArticleAvoid copying buttons in range
i have a macro where i copy paste a range, which also has buttons in there. Now i dont want the buttons to get copied. How can i do that?I copy the whole table and insert it again at A32. lrow =...
View ArticleFilter, print to PDF and save
I want to create a code that will do the following.From pivot table filter based on a "project number" 0-100 for example. Then print the filtered data to pdf. Then move onto the next project number and...
View ArticleConcatenate range except for certain cells
I'm trying to concatenate values in a row with ", " as my separator. I want all values except for specific text. In this case, concatenate range except for "Yes", "No", "N/A", and blanks.
View ArticleCorrupted Data Format in CSV file - Single row data split among 2 rows. Quick...
I have 100's of csv files which appears to be corrupt. All files have the same common problem. Each file has 5 headers but the data is always split among 2 rows e.g.I was thinking of a python script to...
View ArticleRetrieve int value from Excel if it is an int Python
I've got the following data that I am retrieving from an Excel spreadsheet:As you can see, there are rows that have floats and others that have ints. Using my below program, if I retrieve each value...
View ArticleElse Statement - what is the correct Code?
I am new in here in Stackoverflow I tried to create a VBA Code.I have these set of data that I wanted to create a macro(vba) for this so here is the scenario and code.it is something like vlook up...
View ArticleImport from Excel in Python Pandas and rearrange metadata header as column data
I try to import data from Excel to Pandas, but I have issues with rearranging the meatadata.The Excel sheet is in the format (simplified here): Original dataBut I would like to import the Excel sheet...
View ArticleAutomatically adjust the "RC" in an English formula based on the user's...
So I was surprisingly getting error reports from many users for a new tool I made. Those users all have the German version of Excel installed. After a quick glance, I figured out the problem:I used...
View Article