[SOLVED] Update Same Column
Dear All, I have the following code and I would like the code to print the outcome in the same column as the range, so ideally the code would be updating the column F, if possible. Code: Sub update_2()...
View ArticleReecorded macro deosn't work on play back
Hi, I recorded a macro that involved a pivot table for a template and on playback the macro gives a run time error 5 on this bit of code: Code: ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase,...
View ArticleVBA clear contents except for columns A and B
I am using one line of code to clear the contents of every row in sheet except row 1. I still want to clear all the contents of the sheet with the exception of follow cells: Row 1 - do not clear...
View ArticleMacro code to show message depends on selection from Combobox/List
Hi, I have attached the excel sheet, Sheet "A" contains CUG & CUG Verification, Sheet "B" contains Database. Example: If user selects "US" in "A2", depending on that Look into perticular user's CUG...
View Article[SOLVED] Writing a function
Ok. Need some help here. I need to write a function that returns the value of a merged cell that I can plug in to a spreadsheet to get the value of the merged cell to the right. Here is what I am...
View ArticleHow To Run code Before Print Preview
We have recently been changed from 2003 to 2010 and the Workbook_BeforePrint no longer seems to work, the code doesn't run on showing the preview it only runs when Print is actually pressed. I have...
View Articlecalculate maximum value every nth rows
Hi, Do anyone can tell me how to calculate maximum value every 100th rows and retrive that value in a new sheet? Thanks Mbranco
View Articleexcel 2010 VBA InsertPicInRange only makes shortcut to image instead of copy...
Hello guru's I have a problem. I am using a VBA script which worked fine when I used office 2003. This script was created by my colleague how has left the building so to speak. I myself have no...
View ArticleHiding rows based on Cell Colour & Data Validation Value
Hi all, I had a problem a while back with Active X controls disappearing when rows were hidden and not appearing in the right place once the row was unhidden. Kyle123 was able to steer me in the right...
View ArticleScrolling listbox to show last entered item
Hi Can anyone advise on a problem I have with regard to list boxes? I have a userform which shows a listbox. This listbox is populated when I hit a command button. The problem is that the listbox shows...
View ArticleHide Rows if a cell has a value
Good afternoon everyone, I'm looking for VBA code that will hide a row if a cell meets a certain value. For example, if A1 = "A", hide rows 2-5.
View ArticleAdding subtotals below groups with VBA
*Sample excel file attached at the bottom of this post* I'm trying to add subtotals beneath customers in a list that has multiple entries. Multiple entries also are grouped together with group number...
View ArticleSearch with multiple criteria
Hey all, I'm kinda of new at programming excel. I have a spreadsheet that has a ton of data which is in various columns such as office, title, position, salary, etc. Each row is unique. I need to...
View ArticleUserform code for .find function to adjust cell data
Hi All, I have a project on going which consists of a database of parts held in a stores, I am stuck on one final issue, which I have searched for, but not really been successful in working out. If...
View ArticleGetObject doesn't recognize file name
I have searched extensively for issues regarding this error and I just can't find anything that resolves the issue. I am trying to open a file for a simulation (non-Microsoft software; it's a .hsc file...
View ArticleOpen file with a specific string in the filename
I am trying to open a specific file from the same folder which contains the macro enabled sheet using the following code: Workbooks.Open (ThisWorkbook.Path & "\abc xyz_dd_mm_yy.xlsx") Now, every...
View ArticleSum Data from one Sheet to Another
I am very new to VBA so please excuse my simple questions. I have a variable number of columns in a particular row that I want to add the values together and put the result in another sheet in a...
View ArticleInported Multiple Delimited Text Files Do Not Format Correctly
Hello everyone, When more than one txt file is imported, they display horizontally (side by side), instead I would like file 1 to be displayed with file 2 on the next available row, 3 on the next...
View ArticleHelp! The recorded Macro does not work for the highlighted
Range("D1").Select Selection.End(xlDown).Select ActiveCell.Offset(-1, 0).Range("A1").Select Range(Selection, Cells(1)).Select ActiveWorkbook.Worksheets("TB103_BS").Sort.SortFields.Clear...
View ArticleCenter add check box
I need the check box to be center in the cell right now there on the left side. Thank you Sub AddCheckBoxes() On Error Resume Next Dim c As Range, myRange As Range Set myRange = Selection For Each c In...
View Article