Open PDF file and copy filepath and print pages VBA
I currently have a macro that loops through a list and finds PDF files based on keywords. The macro works as it should, but I would like to take it a bit further. The macro searches for the correct PDF...
View ArticleHow to upload any Excel file into database?
I have question about Excel file uploading into database (MySQL or another one). So, is there any options by which I can upload any/random Excel file? I'm not sure how to make it without structure in...
View ArticleCalling every sub in a module in VBA in excel [duplicate]
Is there any way you can call every subroutine inside a module instead of having to reference them all individually?The current code I am running to do this is structured as follows but as I continue...
View ArticleTransfer Row values to columns [duplicate]
I would like to ask you if you do not know by chance how can I transfer values such as contact person from several rows to one. Example: there is a supplier ID that should be in the end unique and if...
View ArticleUpdating a historical workbook using current data [closed]
I have (2) two workbooksA. Historical B. Current_Data Both workbooks have 93 worksheets and the table headers go from A to E with all its respective data, the goal is to create a code that allows to...
View ArticleVBA: How to get date as a string yyyy-mm-dd
I am trying to get the Date as a string formatted yyyy-mm-dd.I have tried various things with strange results:Dim mydate As String mydate = Date mydate = Year(Date) mydate = Month(Date) mydate =...
View ArticleHow to use mailmerge macro from excel to word with a click of a button in the...
I am trying to create a code which will be executed with a click of a button in the excel sheet and will ask me for an input of a cell value in excel which will then take all the data from that cell's...
View ArticleCopy Specific Set of Cells depending on option selected [closed]
Apologies for the test file not sure I was allowed to send my original one due to data on it however follows same sort of pattern.Where I work have set a spreadsheet to show the rota for a week at a...
View ArticlePyramid code problem : object not defined
When I run this code block, it produces runtime error 1004 : application-defined or object defined errorBut VBA is working and the debug line should be py.Range(py.Cells(row, coloum + level),...
View ArticleExcel Text to column
Does any of you know if exist any function to split the double brake line to column? I do know how to split by spaces like: =SUBSTITUTE(SUBSTITUTE(B2;CHAR(13);"");CHAR(10);"|"), but I want something...
View ArticleRefedit to return corresponding row and column
Can someone help me with retrieving the corresponding row and column when a range is selected via Refedit? I put the pictures below how it looks like.What I want to do is when I select a range (for...
View ArticleVBA, Overflow error, For each loop wont take variant
I tried to change my j variable from Range to Variant but I get the overflow errorIf I change to Integer or long I get acompile error.Dim j As Variant Range("D83:D114").Select With...
View ArticleVBA Excel DataBar not with positive and negative numbers, two colors, I need...
I have a column in Excel containing positive and negative numbers and I make a data bar. I would like if lets say I have 55, 24, 0, -10 and -45 the 55 to be filled completely with green bar maximum...
View ArticleVB application which creates entries in Excel
I have created Macros form with user input which adds value in Excel. I have 7 boxes and every entry is placed in dedicated column but now I would like to convert to .exe . I need to re-write my code...
View ArticleSelect a cell from the table and giving it unique class
I have cells (9x9 rows/cols), and I'm trying to create one cell out of the 49 cells to be unique, as you can see when you run the snippet, the cells have random numbers between 20 to 200, and one of...
View ArticleOptimizing macro for organizing data
I've got some csv export from a Database that I want to organise, I've made a VBA macro in excel that takes around 40 min to finish and I would like to know how to optimise it (Mainly to learn).Imagine...
View ArticleHow to merge same text color cells in an excel using python?
I'm relatively new to coding in python, hence stuck with a coding problem to merge similar font color text from an input excel and save the output back to an excel file. The input excel file looks as...
View ArticleHow to show print dialog box and have preview display on same screen
I am trying to emulate Ctrl-P in Excel 2013 where the print dialog box is shown on the left with the print preview on the right.(Although where the preview displays, I always have to click "Show Print...
View ArticleSaving sheets into different pdf files
I found this code on the Internet but it doesn't work on my computer. Can anybody explain to me why? I want to save sheets to different and separate pdfs files.here is the code Sub ExportAsPDF() Dim...
View ArticleGet all files with dates in a folder/sub-folders
I would like to get all filepaths and their dates modified in a directory and its subfolders for each wildcard value in a columnI am fairly new to Excel VBA, and I came across a unique problem that I...
View Article