excel-2010

Linking cells from 2 different excel files, but then keeping figures if emailing only one file?

爷,独闯天下 提交于 2019-12-25 11:59:09
问题 I'm wondering if anybody can help? I have a large number of Excel files. These are commission statements and some are converted from USD to UK Sterling, from UK sterling to Euros etc etc. They are quarterly statements and at present I have to go through each file one by one and enter in the specific currency conversion rates for that month. I was thinking it would be great if I could link all these statements to a single Excel file which contained the conversion rates. I could then update

Prompt for value, then copy but add text (Pt 2)

谁说我不能喝 提交于 2019-12-25 07:39:33
问题 For Part 1 of my request, the following code helped me populate cells G2:G10 Link to Part 1: Prompt for value, then copy but add text Sub Set_Tag() Dim TagName As String Dim x As Long, TagNum As Long, i As Long, k As Long TagName = InputBox("What is the product tag name? Ex. Apple", "Tag Name") TagNum = InputBox("What is the first product tag #?", "1st Tag #") x = Application.WorksheetFunction.CountIf(Range("J:J"), " ") With ActiveSheet.Range("G2") For i = 1 To x Step 3 .Item(i + 0) = TagName

How to Add Column in Final Excel file from merged excel files

二次信任 提交于 2019-12-25 07:04:52
问题 I currently have this excel macro below that basically merging all files indicated in the path into one excel file. Sub simpleXlsMerger() Dim bookList As Workbook Dim mergeObj As Object, dirObj As Object, filesObj As Object, everyObj As Object Application.ScreenUpdating = False Set mergeObj = CreateObject("Scripting.FileSystemObject") 'change folder path of excel files here Set dirObj = mergeObj.Getfolder("C:\Users\MERGE") Set filesObj = dirObj.Files For Each everyObj In filesObj Set bookList

Why is Web Query not highlighting my table in Microsoft Excel 2010?

﹥>﹥吖頭↗ 提交于 2019-12-25 06:09:09
问题 I am looking to use Excel's Web Query feature to give users access to constantly changing datasets. Why not ODBC straight to the database? Well, there are several databases on several servers that I'm dealing with. To avoid granting users varying levels of complicated ODBC access, and to avoid then training those users on how to use ODBC to access the data they need, I thought I'd create a simple web app that outputs the data the users need in clean HTML tables. After creating the pages

excel VBA code not working

寵の児 提交于 2019-12-25 05:28:08
问题 I have a excel sheet with a VBA code as follows Private Sub Worksheet_Change(ByVal Target As Range) If Target.Row = 1 And Target.Column = 5 Then Dim iRet As Integer If Not IsEmpty(Range("AZ1").Value) Then iRet = MsgBox("You have already selectd a Size Template", _ vbOKOnly, "Select Size Template") Exit Sub End If Dim arr As Variant arr = Split(Target, ",") Range("R14:AZ14").ClearContents Range("R14:AZ14").NumberFormat = "@" Range("R14", Cells(14, UBound(arr) + 18)) = WorksheetFunction

Change a value in a cell from a checkbox

江枫思渺然 提交于 2019-12-25 05:19:10
问题 I have a value in one table and a checkbox in another. I would like the value to go up by 1 when the box is checked. I want to do something like this: =IF(C23,B4=B4+1) but Excel throws an error. C23 is the checkbox and B4 is the number. 回答1: You'll have to create a linked cell to the checkbox if you have not done so already (in Design Mode right click on the checkbox and see "LinkedCell" in the Properties menu). Then, when your checkbox is checked, this linked cell will return TRUE if checked

Excel: Listing Numbers In Between 2 Numbers

こ雲淡風輕ζ 提交于 2019-12-25 04:36:17
问题 I was wondering if anyone knew of a formula to list all the numbers between 2 values, so for example if cell F2 had 12 in it and G2 had 17 in it I'd like a formula that would show 13,14,15,16 In cell H2. Thanks 回答1: This cannot be done with an Excel worksheet function. You will need VBA for that. It can be done with a user-defined function (UDF). The following code needs to be stored in a code Module. You need to right-click the sheet tab, select View Code. This will open the Visual Basic

Clipboard “copy” selection gone when autosizing VBA button?

安稳与你 提交于 2019-12-25 02:55:15
问题 I´m puzzled that Excel throws away the clipboard "copy" selection for no (obvious) reason when creating an auto-sized button. Consider this simple selection change handler: Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Excel.Range) Dim P As Button: Set P = ActiveSheet.Buttons.Add(1, 1, 100, 100) End Sub This simple creates a dumb button on the top left corner of the sheet on every cell selection change. If you press Ctrl-C in any cell (no matter if it´s empty

Formula Application Defined or Object Defined Error

試著忘記壹切 提交于 2019-12-25 02:27:31
问题 this is a follow up to a question that was answered earlier for me. I apologize if it seems like I am asking a lot of questions on this, I am fairly new to VBA. I have line of code that is supposed to put a formula in a cell. It is giving me the Application Defined or Object Defined Error message: Here is the code for the entire Macro with the last line giving the error. Sub DBFtoAVI() ' ' DBFtoAVI1 Macro ' Updated by Scott Schmeling on 2/10/2014 based on a Macro recorded by Rebecca Davis ' '

Create a smaller list from data in a larger list [closed]

守給你的承諾、 提交于 2019-12-25 02:15:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I need some help in creating a list using information that is contained in a larger list in Excel. For instance, in cells A1:A15 I have a persons name. In cells B1:B15 I have a drop down box indicating Pass/Fail. I am only interested in the people who have failed, so is there a way to create a smaller list that