Concatenating string and variable to reference another variable
Is it possible to combine a string and a variable to create a name of another variable and referencing it in the same go? Like this: Sub Test() Dim colorName As String Dim columnYellow As Long...
View ArticleIs there a way to get matplot to use time on an axis?
I am trying to plot a graph in python with matplot using an excel sheet (solved the first problem by saving as a csv dcoument), but it seemes to not be able to read the time data in the sheet (in the...
View ArticleHow do I calculate a daily value on python for a csv dataset? [closed]
I'm a beginner with python, need some help with an assignment. I have a CSV spreadsheet that looks similar to the one below, values have been tweaked to make it easier to explain. Using the Pandas...
View ArticleI need help fixing this VBA macro
I am new In VBA. I dont know how to use it but I am trying. I am trying to create a code that say:if tmin < t < tmax then put "Valid" in the cell of the comment column but if not then put...
View ArticleMacro vba to download data from Yahoo Finance [closed]
I need to download with visual basic a csv file...
View ArticleDownload from Yahoo Finanance with vba [closed]
I need to download with visual basic a csv file...
View ArticleHow to include formatted text in the body of an Outlook invite from Excel
I would like to insert text with format (links, bold, highlighted...) in an Outlook invite using Excel VBA.I have a program that send invites from Excel. The body contains plain text. I am using .body...
View ArticleExcel: if cell B2 contains a certain char then value of cell D2=E2 if not...
I have the following table, what I am trying to do is to automatically generate the column D (highlighted in yellow below).If the previous cell in column B (starting B2) has a bracket "(" then I want...
View ArticleExporting a sheet to a closed workbook using path / adress
I tried VBA with the below code, it's working fine but i want to copy prep sheet to the end of a closed workbook in D:\NICE.XLSX your help will be appreciated.Sub CopyRename() Dim sName As String Dim...
View ArticleWhy am i getting this error with copy/paste?
I am getting an error Runtime error 1004: Application defined or Object defined errorin my vba code. Could you please help me correct it?Sub INPUT_DATA() ' INPUT_DATA Macro ' Application.ScreenUpdating...
View ArticleConvert image (jpg, png, jpeg) to base64
I am working with the VBA language to import images from a folder, and convert these images to BASE64 format.I imported the images folder in an excel "E1" row. This worked. Here is my result:Option...
View ArticleRuntime error 91 when pulling Google Translate Output
I'm making a VBA function which will translate text to another language by pulling the translated text from Google Translate using "getelementsByClassName". I'm pulling the correct information, and...
View ArticleVBA alternative to Excel SUMPRODUCT multiple criteria lookup
I have a large spreadsheet with tens of thousands of rows. I want to look up values based on multiple criteria and get the associated values. Currently, I use the SUMPRODUCT function, but with that...
View ArticleExcel VBA Start and Stop Underlining within a footer with a Variable
I would like to have a footer in the Rightfooter that has a string of text with a variable in it, no issues there but what I am finding some difficulty on is the syntax to begin underlining and...
View ArticleImporting Multiple Txt files using macro [duplicate]
I had previously asked this question in this post: Importing multiple text files using VBA MacroAfter a while, i created an entire new workbook and when i try to copy/paste this code to a macro module,...
View ArticleGet Math Operator from InputBox
I am trying to use InputBox to get a math operatorE.g.: +. When I replace the operator with the variable it gives an error Expected Then or GoToThis doesn't work:Sub NumTest() Dim Val As Integer Val =...
View ArticleHow to write this into an IF statement
What i am trying to do is copy large amounts of data from a big report (called new report for this question) into the master report. The code below works fine when there is only one row to get the data...
View Articleuse whereclause within a if condition
I have 5 string parameter A,B,C,D,E, and I want to use them as a condition in a IF statement. I also have 5 local variable, to match the parametersThe problem is, I don't know whether any of them is...
View ArticleDownloading table from web from multiple pages
Im trying to download table from multiple links via web by trying the below code. Sub test() cnt = 0 For i = 2 To 5 temp = Cells(i, 1) lnk = Right(temp, Len(temp) - WorksheetFunction.Find("?", temp))...
View ArticleRun time '424' error in VBA when attempting to use a button to calculate a...
I have the following linear formula that I would like to use a button in excel to calculate: y = 0.0069x + 17.631My plan was to input a value that I assigned to the cell "PackageWeight", and then when...
View Article