Help:in editing code
Hi Is it possible to have picture to replace the sound file in this code below. Any ideas please? Code: Function Alarm(cell, Condition)   Dim WAVFile As String   Const SND_ASYNC = &H1   Const...
View ArticleSlicer reset vba
Hi, In my report, I have one slicer on Sheet1 and 3 slicers on Sheet2. I created a "Reset All Slicers" button on sheet2 linking it to the following vba code, but this resets all slicers in the entire...
View Article[SOLVED] Pivot Table cell/range to change based on drop down menu
I have the same register that most of my questions have derived from, still giving me some grief. I've altered my transfer page (the page that gets pushed to the word report) to be a pivot table. The...
View ArticleSend PDF of sheet via macro
I want a macro that does the following: copies email addresses from a cell and sends a PDF of sheet named Individual Report to those addresses, with a predefined subject line and body text also if...
View ArticleMacro for copying work sheet and renaming copies after a range
I'm using this code to make copies of a worksheet. I would like to modify so that it renames the new worksheets after a cell range, say b3-b10. Thanks for the help. Code: Sub copySheets() i =...
View ArticleEXCEL: Restrict Invalid Entry On Cell Having Data Validation
Dear All I" am having Cell with Data Validation List i.e. 0,1,2,3,4,5,6,7,8,9. I' have also protected the same with the Error option of Data Validation to restrict the invalid values entry in the same...
View ArticleMacro Protect & Unprotect Multiple Worksheets & Workbook (Structure) With...
Hi, I am new to Macros and have only recently started recording little ones. I don't understand the language of them very well and as such trawled Google and found this one on a site from many years...
View ArticleIndex Page in Folder for Macro buttons, to Run Multiple Macros on all Files...
I have created a number of files, with multiple worksheets in each - which sit in folders. I have now thought about doing some Macros to Protect & Unprotect the many many sheets in eack of the...
View ArticleExtract specific strings within a cell macro
Hi there, essentially I need to extract certain strings in a cell which is badly formatted from a database. For example the cell A1 could contain: - Address: 1 Andrew St, Washington, USA Name: Smith...
View Articleextracting rows of data from a table that are met by criteria in two separate...
Hi all, I'm new to the forum and I am struggling to figure this one out. I am trying to sort through an engineering data set (A:2,K:~15,000) and copy entire rows of data to separate sheets where two...
View ArticlePasting tables from excel to power point - position
Hi, I have macro in power point presentation which opens excel workbook, hides some rows and copies table fragment. Then it's pasted on the slide in my presentation. And it works. I paste it this way:...
View Articleuserform with 3 comboboxes and textboxes send to sheet
hi the userform has 3 comboboxes and 12 textboxes i have copied the first combo1 to sheet3 'a' cell the textboxes will be added to cells b,c,d on the same row my question is combo2 and its textboxes...
View ArticleUnhide tab based on value in Combo Box
Hello, I am looking to unhide a worksheet, based on the value in the Combo Box (ComboBox1) on a "Master" sheet. So, for example, if the Combo Box on the Master Sheet has a value of "Jul 17 2012", then...
View Article[SOLVED] Average amounts associated with name in different column
I have a VBA code which gives me this workbook output, what I'm trying to figure out at this point is how to average the cost per hour in column D based on the Bidder in column E. So in this instance...
View ArticleFind and Replace Macro- Within Workbook or Sheet
If I do a Find (or replace), under 'Options' is 'Within'... I can manually pick 'sheet' or 'Workbook', but that will be a sticky change. I have a macro that needs to do a 'sheet-only' replace. But, if...
View ArticleFormat Cell to display HTML code as formatted text
Hi all, new to this forum and spend couple of hours digging for this but cant seem to find the right resolution. I am trying to convert the following HTML content that is displayed within a merged cell...
View ArticleVBA - Evaluate Conditions as String
I have come across a very strange scenario. In a function I will receive a string of condition to be evaluated. E.g. Code: (a>b and (b=2 or c!=3)) Where a,b and c are my variable names. I tried and...
View ArticleUsing the .Pattern Method for identifying Strings
Hi Guys, I'm looking to implement the .Pattern method for Identifying Parts of String terms. Basically I am looking for the Initials of a persons name from within a string. Here are a few examples of...
View ArticleExcel Case/else structure math operations.
I am currently taking a class for Excel Vba, and have an assignment. I have tried everything I can think of, but can't get the calculations to work. In the AddUserInput procedure I am suppose to use a...
View ArticleCompare two workbook VBA
1. I have two workbooks with sheet1 named workbook1 and workbook2 2. Compare column x value in workbook2 with column x value of workbook1 3. If a match is found in workbook1 - delete the row in...
View Article