Copy comment on same column in new rows on dynamic table?
I searched in some places for this code (and use search in this forum) but I didn't see anything related. Just want to copy the comment of first row on a dynamic table to every new cell in that column...
View Article[SOLVED] Print button that still prints when cancelled at the printer setup...
Hello. I'm trying to set a print button that when pressed, it will show up the available printers and then print out a specific range of cells in a specific number of copies. I've tried the following...
View ArticleHelp with Mail Merge Auto Email VBA - Multiple CCs.
Hi, I have an excel macro / spreadsheet that i use to mass emailing people. It has been re-purposed over the years for various functions, so, to be honest, there is lots of stuff in it that probably...
View ArticleLocking / Unlocking Cells
Hello, Hope someone can help. I have a sheet that needs to have cells locked or unlocked according to if then I have about 400 rows that can have data entered in, each row has 9 columns that can have...
View ArticleBroken Code. Web Data Pull
I had some code that was working fine for weeks and all of a sudden it no longer works anymore. I'm still a novice at vba. Do any of you have an idea as to why this might happen. here is the code:...
View Articleselect and sum the values for specific ID
Hi I'm trying to sum a specific values for each user ID in same ID_shop, the user IDs are (81 to 86) my code is not complete: Code: Private Sub deletecancel_Click()   Dim myRange As Range  'declare...
View Articlesaving file with new named folder
Hello I am trying this code and cannot seem to get the file to save I want to create a new folder each time named by the fields in the userform Code: MKDir Location Set Location = "& Me.TxtTNo...
View ArticleCannot delete a worksheet when a change event for a userform combobox detects...
In the attached workbook, there is a modeless userform which has a combox with a rowsource pointing to the first worksheet "Sheet1!$B$1:$B$2". I have added a change procedure (event) to the combox, so...
View ArticleRandom drawing (Randomizer) with maximo of numbers that the result can apper
Hello Guys, please help me, all ideas are welcome. I need to send randomly some specific task to people, (like an automatic drawing) I have the list of the Tasks and I have the % saying how many...
View Article[SOLVED] Help editing VBA code that uses MySQL queries to show also column names
Dear all, I'm using one old excel file with a VBA code that allows to do MySQL queries on other excel files. The file works great, but whenever I do queries, the pasted data does not contain the...
View ArticleFinding 5 largest values in a column and then returning the rows that correspond
Hi, I have a macro where i need to identify the 5 largest values in a specific column of data. Note: Lets say there are 30 columns of data in this file. I need to copy and paste the rows which...
View ArticleFast count of integer's divisors
I am looking for a fast way to count the number of divisors of a 9-digit number using VBA. I can find the count using this function: Code: Public Function tau(n As Double) As Double Dim k As Double...
View ArticleWorkbook_open event, or rather non-event!
So this is a long running issue for me, on and off. I have a stack of spreadsheets that have workbook_open events to do a number of things. So today one of them decided not to do anything on opening....
View Article[SOLVED] copy specific column to another sheet after filtered data without...
Hi My code below works fine, but it copies all data to another worksheet. My data has 21 columns. When I execute the following code, it copies all 21 columns data without header to another worksheet....
View ArticleForm Validation and Insert Object Questions
Hi there fellas, I'm not that versed in excel let alone VBA, but I usually search for what I need (formulas and macros) and get it done, as most of the stuff I do in excel is rather simple. I've been...
View ArticleActiveX MultiPage Control Blues
Hi everyone! My problem is as follows. I succeded in embedding a Multipage control directly into a sheet and then, adding other controls to a couple of tabs (first selecting the MultiPage control,...
View ArticleMy ActiveX MultiPage Control Blues
Hi everyone! My problem is as follows. I succeded in embedding a Multipage control directly into a sheet and then, adding other controls to a couple of tabs (first selecting the MultiPage control,...
View ArticleMacro which sorts and matches entries not working but not erroring
Hi all, I've done some programming in Python and R but this is my first foray into VBA so my apologies if any of this turns out to be an absurdly stupid question! I'm trying to write some VBA code...
View Article[SOLVED] Looking for help with an if then function
I am not sure if this would fall under VBA or cell formula. Basically what I am doing is making a number comparative, using a cell as a search box. What I am trying to do is turn the search cell (I7)...
View Articlehiding rows based on a value in a column
Hello everyone, I have a spreadsheet with data in the range D16:G1500 Please how would I write a macro that looks at the value in column D in reach row of the range and if the value is blank "" then...
View Article