Excel VBA - paste text from clipboard (error 1004)
can someone help me with this code?Sub TEST() Dim Val As Variant Sheets("Sheet 3").Select Val = Range("A2").Value Sheets("Sheet 1").Select Range("AY"& Val).Select Selection.PasteSpecial...
View ArticleExport specific column values in excel to datagrid using VB.Net
How to export particular column values which does not have header to datagrid ...dta = New OleDbDataAdapter("Select * from [linexcel$])...How can I specify the column(column B and D) instead of '*'. It...
View Article'DocumentFormat.OpenXml.Spreadsheet.WorksheetExtensionList' from assembly...
i have a got the this error'DocumentFormat.OpenXml.Spreadsheet.WorksheetExtensionList' from assembly 'DocumentFormat.OpenXml, Version=2.5.4728.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.i...
View ArticleReading from an Excel (xlsx) file using Apache POI library throws...
I 'm building a JSP web application using Eclipse IDE. The web application loads without issue on tomcat server ver 7. We got a new requirement to read from xls and xlsx file. So we have used Apache...
View ArticleRemove #NULL! using Excel Macro
I'm generating excel file by using SPSS and the excel contains character as #NULL! and as it is huge file it's difficult to remove with find & replace command how to do it by using macroThank you
View ArticleFormula to determine if growth is increasing/decreasing, smooth, lumpy, etc
I have some results data in around 10 columns (sample in CSV below) that I would like to run a formula over per row to determine if the trend is reasonably steady/predictable, or lumpy, and if it is...
View ArticleVBA - How to choose right number of decimals, based on chart dataseries?
I am working on a macro for formatting charts. I got stuck at choosing a number of decimals (0 or 1) for data labels and y-axis -> if the chart line is "flat" (low volatility) I want to see one...
View ArticleCreation of simple formula with decimal and multiplication by other cell (by...
I have problem like in subject. How can I create formula in A1 e.g. = 3.14 * A2this code doesn't work and returns error in final version myVal will be delivered by other functionPublic Sub...
View ArticleVBA: runtime error '424' Object required when searching for Shape
I created a VBA script to transfer data from Excel to PowerPoint (both Version 2016) and want to check if there exists a specific Shape on Slide x and then copy it to Slide y.The common solution which...
View ArticleNeed to lower a sum of values while keeping another sum as constant as possible
Ive been given a task to reduce one sum of values while keeping another some as constat as possible. I have two contributions:Item Number, Contribution 1, Contribution 2 1, 100, 200 2, 150, 300 3, 200,...
View ArticleUsing Logic Apps to read Excel from sharepoint online and then inserting into...
I am trying to do something that shoudl be fairly simple but I get no results. I want to read a Excel file from our sharepoint site (O365) and insert the data from the first worksheet into a table in...
View ArticleLoop through worksheets containing graphs, copy both ChartObjects into...
This is my first ever post, so please excuse any inadvertent overstepping of protocol. In my Workbook, I have multiple worksheets each containing 2 graphs – I want to loop through these sheets copying...
View ArticleHow to read data of an Excel file using C#?
How to read an Excel file using C#? I open an Excel file for reading and copy it to clipboard to search email format, but I don't know how to do it.FileInfo finfo; Excel.ApplicationClass ExcelObj = new...
View ArticleMacro to Count Filter Distinct unique Value
I Have Table like this, where i have to use macro because my table always change Every day (SSAS) so i have use macro to filter automatically, I am able to sum Amount based on same Vendorname, PONuber...
View ArticleAdd every file inside a folder
I'm trying to do a macro that let's the user select a folder with more folders inside, this folders could have images .jpg or .png. What I want is that the macro adds only the image files in the excel,...
View ArticleHow to find matching headers in a worksheet using vba
I am very new to vba. The task that I am trying to do is there is a sample sheet with lots of data and lots of headers. Out of those headers I have to verify/check that particular 12 headers are...
View ArticleExcel VBA to set functions Replace, loop, with couple of variables [closed]
Hello guys,I would like to select all datas concerned by some criterias, and replace with **. So based on /Basis ungew.- any cell <10, all datas into the same column, under the header would be...
View ArticleFinding the highest value in a range
How can I find the highest price among the prices with same contiguous label ?For instance, in the picture below the result of the formula in D6 should be 5 because the formula should consider the...
View ArticleExtract words between two specific characters or number
I want to extract the two specific words from excel cell ie: cell A1 contains...
View ArticleAutofil cell with the month number if adjacent cell contains date
I'm looking for a smoother solution for below code. The task is if column O is not empty, then check if AH is empty. If AH is not empty (then it contains a date) I need to get the number of the month...
View Article