VBA Macro worksheet_change does not work properly
I have a problem with properly functioning macro. I wrote a short and simple code to either hide or unhide two last columns, depending on the selected month.Month selection is possible with a combo...
View ArticleVBA SQL returning null values
I'm having a problem running a SQL statement on vba excel, the last 3 Columns are for storing numbers separated by commas, but when executed on excel vba it doesn't display these values, while on other...
View ArticleSumarize a column in 3 different levels in one pivot
I have a table that has the columns below.Year Month Department Item Category Item Date Sales.So is it possible in one pivot to have the sales sumarized in 3 different lvls. I mean after adding in...
View ArticleExcel Workbook statistics - Can we see how many time an excel file was viewed...
I have an excel file, which is used by multiple people. Now I want to get an idea of how many are using the file and who are using it. Can I somehow see some workbook statistics?In file => INFO...
View ArticleLooping through visible rows only not working
I am trying to write a piece of code, that will color all requests which contain only one unique name for each request. Why looping trough visible cells only is not working?UPDATE: I need to delete...
View ArticleVBA: pasting from clipboard unreliable
I am trying to copy a range of cells from Excel and paste it onto a slide of a PowerPoint presentation (both version 2016) with the original formatting.I triedAllg.Copy mySlide2.Shapes.PasteSpecial...
View ArticleQuality Center Microsoft Excel Add-in Error
I work on Mercury Quality Center 8.2 Build 3406 Entreprise Edition.In order to write tests within Excel for Test Director, I installed the Excel Add-In. When I try to export the Excel file to Quality...
View ArticleC# - How to used for StringBuilder in Export Datatable to excel using ClosedXml
I am Using the this code below in private void Form1_Load(object sender, EventArgs e) { System.Data.DataTable dt; SqlConnection con=new SqlConnection("Data Source=sanjay;Initial...
View ArticleInsert a formula for specific cells
Due to beginner for VBA, I am in a difficult to find this codes. I need to create 'Command Button' to insert formula according to current cell location. example: I have these cells that has data C3,...
View ArticleModify excel if function with cumulative sum into python dataframe column
I wan't to rewrite function from excel to column in python dataframe.the function is A2=IF((SUM($P$2:P2)+HelpTables!$D$2)<=500000,10,IF((SUM($P$2:P2)+HelpTables!$D$2)<=1000000,20,30)) It is...
View ArticleVBA Excel: Get the clicked cell“s adress on another workbook
I have an excel file A with a macro and I have to retrive a cell“s adress in another excel file B by the user“s click on it.The macro looks like this.In the Class:Public WithEvents appevent As...
View ArticleHyperlink loop in VBA
I have a problem, because I want to make program with make hyperlink for folders, I already have this part:Dim a As String Dim i As Long Dim ark1 As Worksheet Set ark1 = Arkusz1 For i = 1 To 3...
View ArticleRuntime Error 13 when TextBox containing a Date is empty
Despite of checking many questions relating error 13, I could not find answers to my problem, so I am giving a shot here:I am building my code to save information from a userform, but first I am...
View ArticleWhere find information about We found a problem with some content in
I generated an Excel file with Java code.But when I want to open it, I'm facing this issue:We found a problem with some content in 'file.xlsx'. Do you want us to try to recover as much as we can? If...
View ArticleSet series collection as range - VBA - Excel
I have a chart with a collection series. I would like to extend the range of the collection series by one column to the right. The code below works. However, it assumes that I know the range of the...
View ArticleExcel 2016/2013 crashes running SaveAs method 2 times
I'd like to create several new workbooks. The VBA code below runs fine with Excel 365 and 2010. BUT with Excel 2013 or 2016, it runs fine the first time (and create the files)... and on the second run,...
View ArticleVBA to import 10 most recently created text file to Excel
I currently have VBA code that opens each text file in a given location and imports data into Excel. The problem is that I have 1000's of text file in the location and I do not want to import them all....
View ArticleLoading data from local file into Excel Add In
I am trying to load data from a local CSV file into into my Excel add in, in order to populate a worksheet with the data from said CSV file. Here is the current code that I have...function...
View ArticleHow to change code upgrade from 2.x to 3.x in maatwebsite/excel
I migrated my application to laravel 6.0 .When installing the packages in the composer.json i upgraded from "maatwebsite/excel:~2.1.0" to "maatwebsite/excel": "^3.1".So now my export function does not...
View ArticleExit For Each Loop on Cancel of Save Dialog Box
I am new to VBA and as part of my own development I'm currently in the process of re-writing some automation I wrote to completion some 6+ months ago. I have the below code which identifies the sheet...
View Article