Get Caption From Userform CommandButton During Click Event Procedure
I have a command button and in the ClickEvent code, while it is running, I want to capture the caption of the command button. I know I can access it by Me.CommandButton1.Caption and that's what I'm...
View Article[SOLVED] Delete Data & Subtotal Columns
1. What I would like to accomplish is if I have a "1" in "Column I" that corrspond with text in "Column A" I would like to clear that cell as well as to clear the cell in "Column J:K". 2. Also If I...
View ArticleSend Excel Spreadsheet as Email.
Hi all, I'm currently using the following script to attempt to send the contents of an Excel Spreadsheet as the body of text within an email. Code: Sub CommandButton1() Dim NewMail As CDO.Message...
View Article[SOLVED] Union and Intersect Problems with Worksheet on Change Event
Hello I inherited a workbook for an audit where the original data is on one side and the auditors codes for the same data elements are on the other side. If the auditor changes data the cell turns...
View ArticleADODB Connexion - Update Excel file
Hello all, I need your help. I implemented a macro allowing to handle hundreds of excel files (as input datasource) containing different huge matrix of data. The macro load everything in memory,...
View ArticleNew to VBA, can't get the following to run
Brand new to this. Trying to get the following code I found online to run in powerpoint. I get the "expected end sub" error. Code: Sub CommandButton1_Click() Dim hat As New Collection Sub...
View Articlewhat is wrong with that code ?
what is wrong with that code ? this code simply act as search engine , when a value selected from dorpdown menus it filter another worksheet and copy result and past it in the search engine page , it...
View ArticleMacro to autofill cells and delete some rows and columns
I better start with saying that I'm an Excel rookie, so I know very little (next to nothing) about macro programming, and I only know basic formulas. I have a set of data with a large number of rows,...
View ArticleA lot of workbooks into ONLY one. Can you check this code please?
Hello, I need to merge a lot of workbooks into only one workbook. All the workbooks have only one sheet inside and they all have the same columns. This code I found on the internet It works But I...
View Article[SOLVED] Continuously Generate Random Numbers Until Minimum Reached entirely...
Hey all, I'm try to make my userform generate 6 random number that all meet a minimum value. I'd like to do this without cell references, so entirely within the VBA code. I've tinkered around and...
View ArticleNeed help transferring data from a "template" into a tracking log
So I have been given a spreadsheet with 2 tabs. The first tab, called FORM, has the input data for customers, basically a form. Once the form is filled out, I need to pull the input data into the 2nd...
View ArticleUDF for Converting Bond Price in Ticks to Decimal Number Format
I have two long formulas that I am trying to turn into a UDF because I use them frequently, and I am new to VBA. The first formula converts the tick price (Agency MBS convention) into a decimal...
View Article[SOLVED] Combobox list for two columns or match two different column ranges
I have tried looking this up but all I get is two columns within the the combobox. What I want is for vba to search two columns and suggest cell contents from both without taking a long time. I have...
View ArticleMsgBox_Clear Col not matchN the DaYte in a cEll (on 2Nd Tab) -UpdAte the...
Clear Columns that don't match the date in a Cell located on another sheet and Update the Sum formulae in another column via macro Enclosed Attachment Attached Files Example.xlsx (11.7 KB) Download
View ArticleDuplicating selected table rows
Hi Guys, I need help with my code for duplicating table rows. Currently, this is what i have Code: Dim rng As Range Dim shtControlAssignment As Worksheet Set shtControlAssignment =...
View ArticleGetting compile error sub or function not defined
Hi friends, Im getting compile error sub or function not defined. I want to color the range B:I if the event is due on date. If no event is due then I want a message with a date. Everything else...
View ArticlePreventing a range to be split on two pages A4
Hi again, Does anybody know how to do this? I ve tried with property Code: .Rows.AllowBreakAcrossPages = False But it isnt a table, just few cells, some of them are merged unfortunately.. Logic should...
View ArticleUDF to fetch value from another sheet gives #NAME? error
Hi, I'm trying to create a UDF that can fetch a value from a cell in another sheet. It gives a #NAME? error, though. The way I want it to work is this: As input, it takes two cell references and a...
View ArticleEmail Dynamic Range Issue
Good afternoon! I'm fairly new to VBA (most of my excel knowledge up to this point has been googling errors) and I've ran into an issue that I cannot find a fix to. I'm using the following code to set...
View ArticleFind and replace macro - cells immediately to the right
I'd like to create a find and replace macro with an additional element. I'd like to select a column manually. The macro should then identify text/numbers of my choosing (call it [TEXT TO BE FOUND])...
View Article