Change Fill based on a different cells value
I have an order form spread sheet that I have created. I have it so that if someone selects to use their own UPS account number to ship cell B12 Displays "UPS Account Number" If Cell B12 has a value...
View Articlesending email with a Picture in the body
Hi all, I have a process metric that I need to send via email. I would like to automate this. I am looking for the following 1. upon clicking send mail button the smart art used on the excel should be...
View Article[SOLVED] ListObject Subscript out of range error
Hello, All. Capture.JPG I have the table in the image attached. I am trying to pull two adjacent cells out of a row and concat them together. I have several case statements before this for row numbers...
View Article[SOLVED] How to open multiple worksheets into one .PDF
Good Morning Folks!:) I am trying to converts several worksheets into a .pdf document and have spent a few hours surfing and have come up with this so far: Sub PDFPrintNSave()...
View ArticleOLAP Pivot Table filter with VBA macro
I have a workbook containing OLAP Pivot Tables. It needs to be updated on a monthly basis, so I want to build a macro that adds the previous month to one of the filters on a table. When filtered...
View ArticleVBA to add in Pivot
Hello, I have a pivot table, let say: Report week Booking Quarter Family i just want a macro to add a 'report week' in report week field. What i mean is, if report week field is selected '1', then it...
View Articleoption button to cell
Hi all I have attached a sample workbook because the original is too big. I could use some help on this code since I don't really know any code, what I'm attempting to do is when the form opens and...
View ArticleVB code to create new worksheet based on cell range
Hello everyone, Please excuse my lack of knowledge on this subject. I am trying to find a way to create worksheets based on data within a particular range of cells. I have attached an example of my...
View Articledelete respective row and paste to sheet2 after Autoemail action
Hi all, I have sheet1 where there is data table. Sheet2 is intended to be storing actioned data In sheet1 module I have following code which works fine and does following: As soon as comments are...
View ArticleCalling Text with Check Box Option on a VBA Form
Hi, I am new to VBA and learning a lot through this forum. I need your help in for coding. I am attaching a file for reference. What I am looking is: 1. I have text message on Excel Sheet 1. I have...
View Article[SOLVED] UDF Gives incorrect number for result if not matches
I am using the UDF below to add some numbers together if there is a "match" in the first cell (rng.value). If works great when the numbers match, however, when there is a number that does not match in...
View ArticlePull data from external workbook
I have a rather large template that I update from time to time. In doing so, I'd like to be able to pull data into the new template from an existing file. I'd like to have a button in the new template...
View ArticleRow hide based on cell value
Hi all Please can someone help with a formulae on the attached spreadsheet (Questions UK) I would like the following to happen: If D3 is YES then rows 91 to 319 hide If D3 is NO then rows 6 to 89 hide...
View ArticleNew Font Color for New User
Hi there, I'm a new to the forum and hoping to get some help. I'm looking for a code that defines a font color for a user. The user is defined by his network directory id or outlook email address. I...
View ArticleIs it possible to give several combobox_change commands in one procedure?
I have the following procedure in a Userform. Code: Private Sub ComboBox1_Change() With ComboBox1 .ListWidth = 200 .Height = 18 End With Dim index As Integer index = ComboBox1.ListIndex Select Case...
View Articletranspost column data into rows using array only
Hello Experts, I am new to VBA and trying to learn VBA Array. Could somebody please help me to solve my attached problem. So far I am using below code however this is giving me the output of first...
View ArticleRun-time error 5, Invalid procedure call or argument
I get this message and it debugs to my code here. The part in red is where it is highlighted by VBA Code: If Sheet7.Range("f1").Value <> "" Then For Each rcell In Sheet7.Range("f1:f" &...
View ArticleFocus from listbox selection to textbox gives an error
I have a textbox3 for input value, and based on that value, if exist/correct focus is set on next textbox(12) if not listbox is populated with all values from a column (named range) and most similar...
View ArticlePage break code required
I need to identify page breaks automatically using vba code and add two rows above it. Please help.
View ArticleHow to use Cells.find in a Excel VBA for finding 3 items?
I want to use Cells.find in an Excel file to find "HKD", "USD" and "CNY". There are many Excel files. Some with "HKD" in the worksheet only, some with only two currencies and some with all the three...
View Article