how to copy and paste values and formatting
I have the following code that will copy my data to a blank row. However, I cant figure out how to copy the values and formatting.Sub PasteValues() Worksheets("Summary").Range("A1:P12").Copy...
View Article64 Bit Microsoft Office Excel cannot load the ActiveX RFC Controls as they...
We are trying to load the data from SAP using RFC. However following error pops upRun Time Error '429': Active X Component Cant Create ObjectSet objFunction = CreateObject("SAP.Functions") Current...
View ArticleAssign variables into row numbers in excel
A simple Question, my first row is like: 1,3,5,2,6,4,...Then I would like my second row is: =R1C1, =R3C1, =R5C1, =R2C1, =R6C1, =R4C1....In a word, I would "read" the first line as my row number in one...
View ArticleRetrieve column name based on cell value using matlab and excel
I use matlab software for programming language. I stored my data first is color as column & second value as number from Matlab to excel file.How can I retrieve color name (column / text /string)...
View Articlecount matches based on list of values in a cell
This seems like it should be simple but after googling for hours and trying many different approaches I'm stumped.I have a table of values containing single and two digit numbers, and a cell containing...
View ArticleAdd a Pareto Chart Using VBA in Excel
I'm trying to insert a Pareto using VBA. I tried to use the recorder, but the resulting code does not give the same chart (for whatever reason it records the recommended Pareto as (366,...
View ArticleVBA Loop Through a File Path and Run a Code
I have the code below that I would like to run to all of the available excel files in a folder. Ideally, I would like to input the path of the folder into cell C3 in Sheet1 and the macro to apply the...
View ArticleChange tab color according to two different cells (if statement)
I've trying to change the tab color following a if logic, for cells C32 and C46. Even though the logic is working for most o the logic some does not bring me the right color. I'm not super familiar...
View ArticleVBA application-defined or object-defined error for refreshing pivot tables
Hello I recorded a macro in excel to refresh these pivot tables that I want selected, however when I try to run the Macro it gives me this error "application-defined or object-defined error". I'm not...
View ArticleMy access VBA code for creating excel files with data connections works on...
I have written some code in Access to copy an excel template file, perform some refresh and simple transsformations on the copy, save, and then move to the next file. Initially i could create multiple...
View ArticleProtect my Excel file to copied from Computer to computer1
I have a problem in Excel. If I copy my Excel .xlsm file from my computer to another computer (Computer1), how can I set the Computer1 machine so that my Excel program should neither be copied from...
View Articleopenpyxl: password protect entire excel file (xlsx)
I am trying to find pythonic ways to encrypt/password-protect excel xlsx files. Came across openpyxl, where in their documentation (https://openpyxl.readthedocs.io/en/stable/protection.html) states...
View Articlesigntool.exe Error: SignerSign() failed (-2147220492/0x800403f4) when signing...
I am currently trying to sign VBA macros in Excel and Word and Powershell scripts via the cmd.For this purpose I use the Microsoft signtool.exe as part of the Windows 10 SDK:...
View ArticleUpdate queries in Excel using VBA
I have a query (Query1) loaded into Excel by using a connection from Teradata. Normally when I want to update the query, I have to right click it and choose edit. Once inside the Power Query Editor, I...
View ArticleSplitting NoName column in SQL Query
I want to use a CSV file Test1.csv to create a Recordset with customized column names.The CSV file format: (Blank) | SomeAggr | (Blank) | Div1 | Div2 | Div3...
View ArticleDeleting Rows via For-Loop (within a multi Area Range)
Usually, I would delete Rows using a For-Loop with row-numbers by working backward, which would look similar to this:For rowIndex = 10 to 1 Step (-1) 'delete Row with current row index next rowIndex...
View Articleadding hyperlinks in some cells openpyxl
I have to generate an excel with summary results. The results are included in a list. Some of the elements are values and some links.I managed to generate the excel with the right format but not...
View ArticleRename sheet name to table name
I imported a bunch of data into my Excel from SQL. So I have a bunch of sheets like so:Each sheet has a table name that I can view in the table view area here:I was wondering if there is any way to...
View ArticleCount Words from TextBox in Excel VBA
I have code that counts characters in a TextBox.Sub CountCharFromTextBox() Dim shp As Shape Dim wks As Worksheet Dim lTxtBoxWords As Long For Each wks In ActiveWorkbook.Worksheets For Each shp In...
View ArticleAssign a cell a blank value instead of zero with =F
Here is my formula:=IF('LBD Weigth Loss Tracking'!B6=ISBLANK('LBD Weigth Loss Tracking'!B6),"",'LBD Weigth Loss Tracking'!B6) What I want is for the cell to be blank instead of zero but haven't found a...
View Article