Use VBA to loop through all the .txt files in a folder, then transfer the...
This is the base code (shared by @FaneDuru). This code works perfectly fine. It reads data from a .txt file and import the first 160 columns to an excel sheet. This code can be re-used on multiple...
View ArticleProblem when inserting into oracle with laravel
The problem I have is when inserting the data since it throws an error that I do not know how to solve it connection if I already have it checked but at the time of making the insert I throw the...
View ArticleVBA: Create excel sheets with names referring to cells in main sheet
I am trying to create sheet names that have names based on a cell value (that changes over time when i insert a new row) on a main sheet. On my main sheet i do test cases and errors that i find i will...
View ArticleVBA code with potentially corrupted files
I have the following code. I took it from MRexcel, it seems they aren't interested in helping further. I have been trying various solutions with no luck. I believe some of the files to be corrupt in a...
View ArticleHow do I use a cell value, assigned to a variable, in a filepath string?
I am trying to open an Excel spreadsheet within a changing location. The variables are the dates and file name:C:\Reports\2019\09. September 2019\10 September 2019\1. Client...
View ArticleHow do I avoid data formatting when replacing text VBA?
I'm a new user! I've been using VBA for a while but I need your help now.I wrote a Macro and, among many things, it should find and replace text in a column. Originally, the column have text written...
View ArticleGiving error while trying to write excel file in java using servlet (Web...
When creating a normal java program to write an excel it is not showing any error but when used in servlet it is showing some error can anyone give a solution package com.app; import...
View ArticleGet list of Excel files in a folder using VBA
I need to get the names of all the Excel files in a folder and then make changes to each file. I've gotten the "make changes" part sorted out. Is there a way to get a list of the .xlsx files in one...
View ArticleHow to create a macro that asks if you want to rename a sheet?
I need a msgbox with an If statement that, if yes, sheet("Comparison") will be renamed; and if no, nothing happens. The new name will be the value as the user will put into message box. I don't know...
View ArticleCoercionType doesn't support Image for Excel web add-in
For office js API, based on this link, Office.CoercionType.Image should be supported in Excel. But I find Office.CoercionType.Image is undefined in Excel Online. Only Text, Matrix, and Table have...
View ArticleVBA MACRO Combobox is limited in data
I have a script in VBA (downloaded from internet and adjusted to my use). It is for Data Entry. But i have the problem with some Comboboxes. It is not alowing me to see the whole list of choises. It...
View ArticleProblem creating a pivot table on all machines
Run-time error '438': object doesn't support this property or methodI create an excel macro that involves creating a pivot table and configuring it. The macro runs fine on my machine in the workbook I...
View ArticleOpening a Specific Record in an Access Form From Excel
I'm writing a macro that will open an Access Database, open a form and display a specific record based on the contents of the ActiveCell. I have it mostly working, but the problem I'm having is that it...
View ArticleLoop Through Power Pivot, Pivot Table Filter and Print to PDF
The objective is to Loop through an Excel Power Pivot, Pivot Table and print each Filtered Result to PDF in a specific file location. When the code gets to the for loop of the output it is giving me an...
View ArticleExcel VBA: Setting a range when pasting data onto a sheet
I am copying data between 2 Excel workbooks using vba:Data source (copying from): Workbook x, 'waiting list' sheet.Data destination (pasting to): Workbook y, 'ALL Years data' sheet.It's become a...
View ArticleVBA to run macro then loop through other sheets
I'm trying (and failing) to get some code to run on each worksheet except one specific sheet. I want the code to just cut the data in cells n2:s2 and paste it in t1:y1, then repeat for any other rows...
View ArticleHow to save email draft as Outlook Template .oft format?
I want to save an email draft in Outlook Template format (*.oft) in the folder "F:\Template\winword.2003"Sub SendMultipleEmails() Dim Mail_Object, OutApp As Object With OutApp .Subject = "My Acc...
View ArticleHow to copy only visible/filtered array values to clipboard?
So I have a worksheet of data and I want to copy a comma-delimited array to my clipboard. If I have to paste the value into a cell first, that is fine as well. The worksheet has autofilters on and is...
View ArticleHow to use openpyxl to make all column folds in Excel sheet all hidden or...
I'm using openpyxl to modify an existing Excel file. In the Excel file, there are column folds. I want to write some code so that I can either show all the column folds or hide all the column folds.I...
View ArticleExtracting stored data from dictionary VBA
I have a dictionary that I've populated with information that I've extracted from a master table with roughly 65 000 unique rows. I would then like to filter through the dictionary and only extract the...
View Article