Check Input dates and dates from Excel are same or different
If Input dates and dates in the raw data matches update comments as "done" else "check". Crucial part is the raw date will be filtered as per the previous code.Say for example input dates are between...
View ArticleHow to migrate scripts written in Google sheets to MS Excel macros in VBA?
I wrote a script in Google app script to search a value in a sheet and update the row as per user entered values.It works fine with google sheets.But when I downloaded the document as an excel file, I...
View ArticlePlotting values like 1.10e15, 1.3e15, 2e15 using ggplot or spplot
i am tring to plot data, which range in 1e15-2e15, unfortunately i am not able to plot a nice line graph.How to make y-axis to be abbreviated into 1e15 instead of 1000000000000000in...
View Articlehow can I copy from specific shett in excel
I'm trying to combine multiple sheets to one sheet and i used the following VBA code: Sub Combine() Dim J As Integer Dim s As Worksheet On Error Resume Next Sheets("Operational").Activate...
View ArticleTrying to compare cell to a column and if match replace row
I'm trying to match two columns in two worksheets. if they match I want the row from sheet 1 to replace the row in sheet 2. Is this possible? I tried this: Sub LoopThroughCities() Dim LstRw As Long,...
View ArticleWay to delete the entire column in excel macro based on column header value...
I am trying to find a way to delete the entire column in excel macro based on column header value that contains some string.Note: If the column header appears n number of times, it has to find and...
View ArticleUsing a textbox in a userform to add information to 2 column i listbox in the...
I'm adding information from a textbox (tbxBladnr) to a multiselect Listbox (lbxSektioner) second column, that are placed on the same userform. I can't get this to work. One thing is If Not...
View ArticleExcel - ExportAsFixedFormat - Pages From & Too problem
I am trying to automate the number of pages to print, where a user inputs a set of data and it populates a sheet. Depending on how many items of data they add, the sheet I want to print could be 1...
View ArticleUsing Option Button to set a variable
I have a workbook with three sheets.The first sheet contains two option buttons and a button. When the user clicks the button I want to copy the appropriate sheet (sheet 2 for option button 1, sheets 3...
View ArticleWhy does activating specific sheets effect run time of my macro
Edited for brevity/correctness: Scroll to the end for a TL/DRI run a fairly lengthy macro which opens a bunch of files from Workspace/Sharepoint, copies things over to my excel sheet, loads data into...
View ArticleExport DataTable to Excel in ASP.NET
When calling this method, the whole page with html design ported to excel along with data. I wants export data only, should not come with html design. I couldn't find the solution, Please some one help...
View ArticleExcel VBA command button for another worksheet
thanks in advance for the potential answerer.I have a question with excel VBA, macro. I made a command button that runs the code when I click the button. It works perfectly except for one function.Dim...
View ArticleCopy sheet and get resulting sheet object?
Is there any easy/short way to get the worksheet object of the new sheet you get when you copy a worksheet?ActiveWorkbook.Sheets("Sheet1").Copy after:=someSheet It turns out that the .Copy method...
View ArticleCombine NEXT function with a variable (named range) from the name manager
I have the following VBA to insert a value into each sheet using the NEXT function:Sub Insert_Values() Dim b As Worksheet For Each b In Worksheets Dim Range As Range Set Range = b.Range("B2:C4")...
View ArticleLoop counter not incrementing for large number of loops
I have a data set with a time stamp in Column A and data in column B. There are four seconds to 30 minutes between data samples. I created VBA code to calculate the one hour average for each row. The...
View ArticleAssign values to array in for loop VBA
Can any one kindly check the code, I explained the code in comments. I am getting run error 13 My concern in the assign method that I am using. I want to assign the cell value in the array starting...
View ArticleHow to save temporary excel file to Sharepoint using VBA
I'm trying to modify the below VBA code to save the temporarily file on sharepoint. Below code creates a temporary excel file, which is attached to an email. Is there any way I can add a procedure to...
View ArticleExcel Macro Search and Replace Cell [closed]
Please help i want to clean my data in excel with macro.Before:After: So i need suggestion function macro to search DATA with paramater in MASTER. After that, macro can be show result what parameter...
View ArticleTrying to call an API in visual basic
I have really tried to make this work - and I am probably missing something simple.So basically I am trying to call an API service in visual basic, and then the idea is to use the jsonparser to pull...
View ArticleImport .txt file from one directory to an excel file with a specific...
I need help to import a specific file in .txt to excel, but only import specific lines with a specific begginnin tex, like '1234' or 'FPC9'.Sub IMPORTAR2() Dim myDir As String, fn As String, txt As...
View Article