Replace dot with comma, and comma with dot
I am trying to replace dots with commas and commas with dots. The data is not always the same length. I created a button (Form controls) for the code. I tried writing the code for replacing dots with...
View ArticleVBA isString vs isNumeric
I am validating data that is in some textboxes in a VB userform in Excel. The data can either be a number that is 6-digits long, a string that is at least 3 characters long, or a combination of string...
View ArticleReadyState Complete stuck on ReadyState = 3
I have been running this code to navigate to this city-data webpage for the past couple of days and it has been working fine, but all of a sudden I now get this infinite loop around readyState = 4 and...
View ArticleHow to pass a string variable to .getElementById() in VBA?
I'm planning to use this code in a loop but I have to test it first.Using the basic:doc.getElementById("product_basic_product_features_attributes_0_title").Value =...
View ArticleHow to pick JSON nodes given in an Excel table for each field?
Hi I am quite new to VBA and JSON. I want to parse a JSON script using a VBA macro.I already have an Excel table with each field and it's corresponding JSON path. While trying to pick the value from...
View ArticleSet Variable Offsets Based on Empty Cell Location
I am trying to set up "x" and "y" as vaiable integers where "x" will take the place of 9 and "y" will take the place of 10 in the offset locations listed below. "x" and "y" will need to change value...
View ArticleCopying columns with same headers in two sheets but skipping those present...
Following code performs copying whole columns based on headers. Header from sheet2, when is found in sheet 1, whole column is copied to sheet2. Is it possible to extend this code to skip headers...
View ArticleVBA: Checking optional parameters
I have two subs and want to pass values from one to the other. Option Explicit Sub Test() Call HandleInput(ActiveSheet.Range("A1:C4"), 4, 2) End Sub Sub HandleInput(rng As Range, rowNumber As Long,...
View ArticleHow to add If condition?
I've created a program to create and send receipts. I managed this by looking online.It works, but I'd like send the receipts when a condition is met.cfws.Range("N"& I).Value = "no"Do I start the...
View ArticleError passing a value between 2 subroutine
I'm trying to pass a String between 2 sub in VBA, but everytime I got a compilation ErrorThis is my codeOption Explicit Private Sub ComboBox1_DropButtonClick() Dim value As String value =...
View ArticleOpen Excel 2016 workbook using Microsoft Edge or Chrome, ActiveWorkbook Path...
Recently, the company upgraded to Windows 10 from Windows 7. Along with the operating system upgrade, an upgrade to Office from 2010 to 2016 occurred. The company is running a Visual Studio 2013...
View ArticleIn valid syntax while writing excel formula in python
for i,cellObj in enumerate(sheet_formula['P'],1): print("Adding formula to " + filename) cellObj.value='=IF(AND(OR(A2="g",A2="s"), ISNUMBER(SEARCH("A", E2))),"A"),VLOOKUP(A2,'rj'!A:B, 2,...
View ArticleUsing table reference in worksheetfunction
I'm trying to use WorksheetFunction with table reference as arguments and it's not working.Function Index_Formula(TBL As ListObject, TBLSource As ListObject) As Double...
View ArticleCopy sheet in Excel macros and update their links [closed]
y and m. Sheets x and y are linked to each other what i want is to use the x and y sheets as a template and create their copy, update their names and links based on a list present in sheet m. can any...
View ArticleCompare less than today date & Autofill Issue
Need help with my code. I have two issues.1st issue is I try to make my code to loop if fulfill empty cell and date at column 1 less than today dateAnd .Cells(rw, 1) < Format(dt, "dd-mmm")but this...
View Articletabula-py ImportError: cannot import name 'read_pdf'
Im trying to use tabula-py to transfer a table from pdf to excel.When im trying to from tabula import read_pdf it saysImportError: cannot import name 'read_pdf'All solutions i found say that i have...
View ArticleI am trying access a file without it being open and copy rows from it based...
The below code opens up folders and allows me to choose what document I want to be the source, it then opens it behind screen and works when only copying sheets, however I have tried to change the code...
View ArticleMethod 'Copy' of object '_Worksheet' failed
For the first time I now faced the error Method 'Copy' of object '_Worksheet' failedI heard that this is a quite common error but I was not able to find a solution. When I searched trough SO, I found...
View ArticleExcel VBA - Using Shell to run a batch file after saving files in a new drive
I've got a workbook that uses a macro to run a batch file (CEA.bat) via. the Shell function. I created the workbook on my local D: drive (C: is the main/OS partition), and it works fine there. I'd like...
View ArticleIn Excel I need to convert seconds in days hours min sec
I've already figure out that I can divide the number of seconds/86400 and then use the format: dd \d\a\y\s hh:mm:ss, but when it goes over 31 days 23:59:59, the number of days goes back to 0.How can I...
View Article