Generate n random numbers Summed upto cell value Vba code
Hi I'm trying to generate n random numbers in Vba code so that their sum must be different in each time:one time sum must be 1000 one time sum must be 1500...and so on the sum in the code is called...
View ArticleHow to copy data into every other column in excel VBA
I have 2 sheets and I want to copy the cells (B18:B23) from Sheet1 and paste them into Sheet2 while transposing them and pasting them in every other column (O4,Q4,S4, etc. skipping a cell between). Sub...
View ArticleHow to keep the triangle shape when exporting triangles from R to Excel?
I've used the ChainLadder library to construct development triangles. My issue is that when exporting them using write.xlsx2, they end up being formatted as a regular table instead of a triangle.I'm...
View ArticleHow to Find specific text in a formula in Multiple Columns (based on Column...
I am trying to make below code to work so that I can:Find specific text "AMJ" in Formulas in specific Columns with Header Names: "RmRf" and "UMD"Then once "AMJ" is found, it should be replaced with...
View ArticleAdding in expand selection functionality to sort function for a list in a VBA...
I'm on the last step to setting up this simple macro but just can't figure out one part. So in this image: When the macro runs, the data sorts successfully, but just that column sorts which means that...
View ArticleVBA - Error 381 while trying delete items from combobox
I've tried by hours to cope with this error, search solutions, but nothing is clear for me. I've imported successfully items from Excel to combobox (>19 appearances)Now I have duplicates in combo. I...
View ArticleHow to create excel blank rows using VBA as per as I want
I am new with excel VBA. How can I insert a different amount of blank rows in different cells of excel? This code inserting one blank row each time.'Step1: Declare your variables. Dim MyRange As Range...
View ArticleI wanted to parse the data with the same label ID (column A & B) the...
I have excel csv file to parse with 2 columns A & B, my objective is if the column A & B condition will meet then it will parse the column C & D. Please help me code this in perl. Kindly...
View ArticleHow to use countifs code with a date range
I would like to run the below code four times with four different date ranges, 1. This month, 2. Last month, 3. Last quarter, 4. Previous quarter (the quarter prior to last quarter). I would like them...
View ArticleHow to loop subfolder and rename file
I need to now make the loop loop through not just the base folder but also loop through sub folders e.g MainFolder>SubFolder>SubSubFolder and extract the 2 data values that i need. Also i need to...
View ArticleConcat Arrays cells in excel
I not expert in excel, I need some helps in what maybe is easy but i could not find the correct answer.I have 3 cells:A1={"A","B","C"} B1={"1","2","3"} C1={"X","Y","Z"} I need to D1="A 1 X , B 2 Y , C...
View ArticleDynamic Array to store sheet Name
Hye What I am trying to do is:Merge sheet from others workbookusing the data on merge sheet to perform calculation and obtain the resultthe result will be pasted on their sheet after the calculation is...
View ArticleHow to Select Multiple Columns based on Column Header
I have managed to used below code to Select only one column based on the column header (column header is "COV")However, I need to Select Multiple Columns based on their column headers, for example...
View ArticleHow to show userform, then hide, then show again without running the userform...
I have a progress using a userform. I show the userform when a worksheet button is clicked. The button calls startProgressIndicator()Sub startProgressIndicator() UserForm1.Show End Sub I have this as...
View ArticleHow to detect when a workbook is closing?
The Workbook.BeforeClose event triggers when the workbook is about to close but before the saving message prompt which allows cancelling it.How can I detect when the workbook is already closing past...
View ArticleHow do I use VLookup to update a field referencing an Array?
I'm trying to get a field in a text file output to update referencing Array (Temp) where column B checks column D and updates as data in column D. STEPS:Created the Array (temp) then used Index Match...
View ArticleExcel: require Power Query add-in load from VBA macro
The scenario is a Windows Server 2012 R2, 64 bit; Excel 2010, 32 bit. Many users, just a couple of them have administrative privileges. I installed Power Query from the built-in administrator. Without...
View ArticleVBA Inserting Comments from Excel to Word
I'm new to VBA and I'm having difficulty trying to insert comments from data that I have in Excel onto a Word document. I am trying to write the VBA in Word and want it to extract data from a separate...
View ArticleVBA: Error 1004 when trying to load UserForm with non-blank sheet
I have created a UserForm named blocksForm inside a workbook. Buttons inside the form will populate a sheet BBG with data from form. I want the form to be able to show even if my BBG sheet is not blank...
View ArticleHow to use a cell reference in INDIRECT function
I have several cells that calculate totals from a single cell from multiple worksheets, in this case "Y3" from each of the sheets that are in Week, where n is an integer from 1 through...
View Article