How to find the LAST (repetitive) value in a range using a macro? [closed]
For example I have the following data starting in cell 'B3' :B3 qqqB4 wwwB5 eeeB6 qqqB7 qqqB8 rrr I want to loop through the whole range "B:B" and find and stop at the cell address of the LAST"qqq"...
View ArticleI'm getting stuck at vba runtime error 424
I'm getting run-time error 424and I don't know how to fix it.My previous question I posted ; How to scrape specific part of online english dictionary?My final goal is to get result like this; A B...
View ArticleHow to use Powershell to paste an excel table into powerpoint while keeping...
I am trying to paste several excel tables into powerpoint using Powershell:$shape = $slide.Shapes.PasteSpecial($ppPasteJPG,$false,$null,$null,$null,$null) It seems to work perfectly with two of the 6...
View ArticleCannot Run Visual Basic Editor Because of a Syntax error after splitting...
I have a VBA Excel model which I have separated into two separate workbooks: InputsWB, which contains all the inputs for the model, and RunnerWB, which contains the bulk of the VBA code (and all the...
View ArticleOutlook error when sending more than one mail: "The item has been moved or...
for i in processed_corpus: for j in i: if j == "pricing" or j == "price" or j == "quote" or j =="quotation": mail.To = "abc@xyz.com" mail.Subject = message.Subject mail.Body = message.Body + "Belongs...
View ArticleSearch in an Excel Userform from an Access Database and display results in...
I have a userform in Excel that I intend to use as a search form and has a listbox to list the result. I am using VBA. The form will search for an Account number from a table in my Access database once...
View ArticleHyperlink to a worksheet that then filters accordingly
Just wondering how I can hyperlink a word to another worksheet that then is filtered to show just the section that applies to the word. I have attached an example of countries.On sheet-1 there are a...
View ArticleCreate an excel tournament macro for combinations of teams in pools...
I was looking for help in creating this macro that should solve several future problems for my beach volleybal tournament :)I googled several different solutions on combinations calculations but I...
View ArticleHow can I convert excel or word files into pdf file, merge it into one file...
Below is the snapshot for better understanding of my work.enter image description here
View ArticleVBA SQL query saved as a string and loaded as logging back to the database...
query_executed = "SELECT p.FBN, p.Car_Number, p.Car_Title, p.Car_Type, p.Owner car_owner, p.open_closed as Car_Status, p.Car_Status as Status, p.Car_Date_Approved, p.date_submitted_for_approval,...
View ArticleUserWarning:Slicer List extension is not supported and will be removed...
I am working with pandas and openpyxl.INPUT FILESI have total three input excel files in my program. With the help of dataframes I am processing input excel files and getting a final dataframe after...
View Article.Paste Method does not work correctly / behaves differently than "Ctrl + v"
I've seen a lot of weird things happening in excel, but this is probably the weirdest.What do I want to do?I'm grabbing data from SAP and want to paste it into my excel sheet via vba. (There are other...
View ArticleSort to optimize manager assignment in excel
I currently have a list of employees by region, area & branch (in that order). Every row represents a branch & the number of employees that branch have.I want to calculate how many managers I...
View ArticleHow to check if name of an cells exists (name.name)?
I want to write the named area in a string (and go through column D unitl last row). But if the cell is not named I get an error on "Name = wsData.Cells(i, 4).Name.Name" and code is stopping there.I...
View ArticleExcel: Range.Cut() or Range.ClearContents() changes the ActiveWorkBook
I have created an application that does following things:Open workbook from path using Excel.Interop newwb = ExcelApp.Workbooks.Open(path, 0, false, Type.Missing, Type.Missing, Type.Missing, true,...
View ArticleSet cell value using based on cell length
I have this kind of product id in column D:1942-PS-M-011942-PS-M-2331942-P-M-25 1942-P-L-200I want to set the value in column G Using the last 2/3 number in the product id value.I tried to use formula...
View Articleloop through merged cells in a Column to get their addresses in vba
I have one column. say column A, which has multiple merged cells of different ranges. for example first cell is merged from A2 to A15 whereas second merged cell ranges from A16 to A115 now i want to...
View ArticleCalculate the number of days between a cell and today in excel?
How does one calculate the number of days between a cell with a date and today?I've tried:=B2-TODAY() =(B2)-TODAY() =(B2-TODAY()).days etc... and am having no luck. How do I get the difference between...
View ArticleExcel (xlsx) file from GMAIL to Google Sheets - Copy As Values Not Formula...
My question is very similar to this one, except I have formulas in my excel file which means all the data ends up being #error.Importing XLSX file from the monthly e-mail (in Gmail) to the designated...
View ArticlePlease help me edit my Multiple conditional excel formula
could really use your help with a formula I just built. In the below image, I am trying to build conditional formulas in columns AA through AI that will select cells from B through I only if specific...
View Article