VBA copy row values one row up
I have a filtered spreadsheet with alternating rows as follows: - a value in col A in one row - next row has values in col C and E Using VBA, how do I copy paste the values in col C and E up one row...
View ArticleSave Copy as CSV MSDOS (Without closing/changing workbooks)
I have a macro that saves the current workbook as CSV MSDOS format.Here's my code:Sub Save_CSV() Dim Location, FileName As String Location = "C:\Users\myawesomename\OneDrive\Desktop\GM MRP\" FileName =...
View ArticleWhere to find XLLs usable for XLL compatible custom functions
To enable compatibility with an existing XLL, I want to identify the equivalent XLL in the manifest of my Excel add-in. My existing add-in is using XLL technology, but it does this by using 3rd party...
View ArticleHow to get the Excel fields(double) as int
I am trying to read the uploaded Excel content, but the following two methods cannot use reader.GetInt32(1):I set the Excel field as "common format" and then input a number 1. --> Show...
View ArticleHow to print values into next empty cell?
I have designed a VBA form to collect data from the user. However, I want to allow the user to fill the form multiple times and each time prints the filled out data into appropriate cells in the Excel...
View ArticleI'm facing problems troubleshooting my vb.net code
I'm trying to update data in my excel database but it keeps giving me an error "Cannot covert from string "" to integer". I guess there is something wrong with it as I am not good with vb.net. I'm...
View ArticleCombining two macros into one **note** these are scraps from recorded macros...
Sub RemoveDuplicates() Dim rngData As Range Dim iCounter As Integer Sheets("BBT").Select Set rngData = Range("A1:A5000") For Each cCell In rngData If Not (IsEmpty(cCell.Value) Or Trim(cCell.Value) =...
View Articlecyberduck sum-up column value laravel/excel
Currently I can get the data inside of specific sheet in my excel file. $excel = Importer::make('Excel'); $excel->hasHeader(true); $excel->load($savePath.$fileName); $excel->setSheet(6);...
View ArticleTable Autofill Not Working with Excel data,
The autofill on Excel tables is not working (for calculations) when I am using a Excel data source (copied & pasted into the file) but is working when I use a CSV data source (copeied & pasted...
View ArticleHow to Implementing LOOKUP function form excel to vbnet?
i have an excel file where the function using lookup. and i want to implementing this function with same data from my excel file. and i already make a data list in vbnet using datagridviews. and this...
View ArticleHow to select Excel range in powershell
I have the following code in a function:function Excel2PPT{ param ($xslx, $targetsheet, $targetrange, $pptx, $targetslide, $npath) $Excel = New-Object -ComObject Excel.Application $workbook =...
View ArticleSet a cell colour based on given/referenced R, G, B values
Essentially what I'm trying to do is this:I want to be able to put a function into a cell, =Colour(R, G, B), where R, G, & B are selected reference cells (e.g. =Colour(A1, A2, A3) ) representing...
View ArticleError in finding last used cell in Excel with VBA
When I want to find the last used cell value, I use: Dim LastRow As Long LastRow = Range("E4:E48").End(xlDown).Row Debug.Print LastRow I am getting the wrong output when I put a single element into a...
View ArticleAdding hours according to a date
It creates a Run-time error ‘2147417848(80010108)’I'm really new with using VBA. Currently what I'm trying to do is adding working hours in Column X according to the same date in Column B and export it...
View ArticleHandle Error 9 when there is an Empty Array
I am writing a script that will loop through an Excel spreadsheet and find if there are duplicates of selected cells. If there are duplicates then the function will return an array of which rows are...
View ArticleGet formula from Excel cell with python xlrd
I have to port an algorithm from an Excel sheet to python code but I have to reverse engineer the algorithm from the Excel file.The Excel sheet is quite complicated, it contains many cells in which...
View ArticleIn Microsoft Excel, How to disable user for inserting a new row, only between...
If I protect sheet with allowing user to insert a new column, it will allow user to insert a new column everywhere. Then, how to block user from inserting a new column other than column C, D, and E?
View ArticleActiveX component can't create object, When using .dll/.tlb
Run-time error '429'I am looking to get a little bit of help with a problem I am seeing. I create a vb.net Class Library that I am calling from VBA in excel. I built the solution and created the .dll...
View ArticleIs there a way to be able to create a Pivot table several times without...
I have a set of data which I wish to transpose into a Pivot table at the press of a button but my challenge is I can only run it once. Once the pivot table populates to sheet2, it can never be run...
View ArticleRefresh all does refresh the connections but doesn't refresh the tables
I have three tables which pull data from SQL database.When I click refresh all from the data menu, the connections refresh but only sum of the tables are refreshed.When I right-click>refresh the...
View Article