Need to insert variables to iterate over an SAP table using a vbs script....
'I have iterated over tables in SAP in the past but, I can't figure out 'what's different in the following code.Dim Row_Numb Dim i_col Dim j_col Dim k_col Row_Numb = 0 i_col = 0 j_col = 1 k_col = 2...
View ArticleVBA Merge Similar Cells
I would like to merge similar cells by columns, as of now I am using this macroSub MergeSimilarCells() Set myRange = Range("A1:Z300") CheckAgain: For Each cell In myRange If cell.Value = cell.Offset(0,...
View ArticleVBA to paste shapes transposed in Excel 2007?
When I pasted cells transposed, the pictures were not pasted.Is this normal for excel?If so is there any code or trick to get those pictures (which are column/row headers!) Transposed from the old row...
View ArticleHow to apply a vba macro to all excel files in a folder?
I would like to delete a worksheet on multiple excel workbooks. I already have some VBA code to delete a worksheet in a single file:Sub delete_sheet() Application.DisplayAlerts = False For Each aSheet...
View ArticleExporting .xlsx and .pdf where filename already exists
I need some basic help that I can't get right in my code.Saving as both an .xlsx and PDF file, in the same location, just can't get it to prompt if filename already existsSub SaveAs() Dim Path As...
View ArticleBuilding frequency table using tick by tick data
I am trying to calculate the conditional probability of upmove (price going up) given that the previous price movement has been up or down. This is based on transition matrix obtained in the following...
View ArticleCleaning up Data using a VBA Macro
I have a basic request. Yet I can't seem to find anything on here that really helps me. I'm trying to do some basic data clean up. I'm very new at VBA. So I recorded a macro that cleans up the data for...
View Articlevba to collapse pivot table detail for prior years
I have a workbook with about 120 tabs, each containing one or two pivot tables. The pivot tables are updated and refreshed monthly. I am struggling to write a macro that will collapse all prior year...
View ArticleHow to embed an image into an Outlook email using VBA
Very closely related to Embed picture in outlook mail body excel vbaI'm trying to embed an image into an Outlook email.I'm using the following code snippet, half of which has been stolen from the post...
View ArticleVBA Macro got me stumped
I'm using a macro to make a copy of the active sheet, and rename it to whatever the value of cell 'C2' is. The only problem is, that when it copies the sheet, it somehow removes the form buttons from...
View ArticleUsing a macro to generate a table with a defined number of rows in excel
I am trying to generate a table in excel using a number of rows defined elsewhere in the sheet with a macro button. For example, if I define the number 7 in cell Q2, I'd like to be able to generate a...
View ArticleHow to use a VBA to combine rows that are prematurely broken from a CSV?
I have a CSV showing purchase information, but in each line the data must have too many commas as a few extra breaks are added in. In this case, row 1 is the header. Rows 2-5 should be merged into one,...
View ArticleCopy files FromPath to 3 other folders using the state abbreviations in the...
I am currently working on a macro to copy pdf files in one master folder to several other locations. There is a segment of this macro where the various files need to be copied to 3 different folders...
View ArticleNeed to send CPU and Memory information to Excel sheet
I am automating health check for some of the windows servers. I am very new to PowerShell (started today). I want the CPU and Memory utilization of a windows server at an instant to be recorded in an...
View ArticleVBA webscrapping English premier League form
Am trying to scrap form data(last 6 games played) but its not coming out the way I want.The form column shows green (Win), Orange(Draw) and Lose(Red).I would like to see the team first and the form...
View ArticleTrying to remove bad data using countif function
First, thank you for the help in solving this problem. It's pretty simple but I'm just not getting it.In excel, I have 2 tabs. In the first tab, I have rows of personel data (job title, country of...
View ArticlePrint Range User Selected VBA Excel
I was hoping to create a module that would basically operate like so:Define 4 or 5 print ranges;Prompt a user an input box;Allow the user to select, from a drop down in that input box, the range they...
View ArticleTrying to make a program that takes multiple spreadsheets from multiple...
import pandas as pd from os import listdir from os.path import isfile , join folder = "c:/sheets" excel_names = [f for f in listdir(folder) if isfile(join(folder, f))] print(excel_names) excel_files =...
View ArticleSendKeys Not Capturing all Data
I'm using VBA code to take data from excel and populate a pdf from using SendKeys. This works for 99% of all of my data, but I'm noticing in some instances, the data from excel is not fully...
View ArticleJexcel - Updating an excel with data
I've tried using Jexcelto update an existing excel sheet as discussed in the Vogella tutorial.Issue here is the data already present in the existing excel sheet is wiped out with the newly written...
View Article