excel-2010

How do I track who uses my Excel spreadsheet?

◇◆丶佛笑我妖孽 提交于 2019-12-03 09:22:27
I created an Excel spreadsheet that my boss wants to put on the company's internal website. The spreadsheet contains some seldom-used, esoteric, but handy functions that only certain employees within the company will find really useful. The problem is that I don't know who the future users are, and my boss wants me to identify who uses my spreadsheet. He asked that I password-protect the Excel spreadsheet in such a way that one password does NOT unlock all of the copies that people can download from the site. For example, I can't just make the password "stackoverflow" because once a user

Active cell as input to formula

谁说胖子不能爱 提交于 2019-12-03 09:12:59
I was wondering if I can use the active cell, by that I mean the cell that is "highlighted" at a given time with the square border after there was a mouse click there, as an argument in a function. For example, I have created a table with weighted averages with 3 weights: w1 is given in the column headers (kindly see the file below), w2 in the row headers, and w3 which complements w1 and w2 to 1. What I'd like to do is have cells outside the table show the weights the average got when a cell in the table is selected. For example: Screenshot: http://imgur.com/emmBH5S/ file can be found here:

How do you select the entire excel sheet with Range using Macro in VBA?

梦想的初衷 提交于 2019-12-03 08:22:25
问题 I found a similar solution to this question in c#... See link below How to Select all the cells in a worksheet in Excel.Range object of c#? Does anyone have a snippet to do this in VBA? I'm not really familiar with VBA, so this would be helpful. Here's what I've got so far... I select data normally by using "ctrl+shift over arrow, down arrow" to select an entire range of cells. When I run this in a macro it codes out A1:Q398247930, for example. I need it to just be .SetRange Range("A1

How to easily get network path to the file you are working on?

筅森魡賤 提交于 2019-12-03 06:26:22
In Excel 2003 there used to be a command that I added to my toolbar that was called Address (if I remember correctly) and it would show the fully-qualified network path to the file I had open. For example: \\ads\IT-DEPT-DFS\data\Users\someguy\somefile.xls This made it easy to grab this string and pop it in an email when you wanted to share the file with a coworker. I don't see this option in Excel 2010 but find myself needing to send/receive Excel files a lot now. Coworkers will give vague references to "it is on the share drive" or email the file as an attachment (ugh!). Anyone know if

How to delete Certain Characters in a excel 2010 cell

青春壹個敷衍的年華 提交于 2019-12-03 06:10:23
In column A I have a load of name that look like this [John Smith] I still want them in A but the [] removed... If [John Smith] is in cell A1, then use this formula to do what you want: =SUBSTITUTE(SUBSTITUTE(A1, "[", ""), "]", "") The inner SUBSTITUTE replaces all instances of "[" with "" and returns a new string, then the other SUBSTITUTE replaces all instances of "]" with "" and returns the final result. Replace [ with nothing, then ] with nothing. Another option: =MID(A1,2,LEN(A1)-2) Or this (for fun): =RIGHT(LEFT(A1,LEN(A1)-1),LEN(LEFT(A1,LEN(A1)-1))-1) 来源: https://stackoverflow.com

Open XML SDK 2.0 to get access to excel 2010 worksheet by name

╄→尐↘猪︶ㄣ 提交于 2019-12-03 06:00:54
I have an Excel 2010 spreadsheet that has 3 worksheets named Sheet1, Sheet2 and Sheet3. I'm trying to get a reference to a worksheet by name. I'm using the code: using (SpreadsheetDocument myWorkbook = SpreadsheetDocument.Open(FileName, true)) { //Access the main Workbook part, which contains all references WorkbookPart workbookPart = myWorkbook.WorkbookPart; WorksheetPart worksheetPart = workbookPart.WorksheetParts.Last(); // this gives me Sheet1 SheetData sheetData = worksheetPart.Worksheet.GetFirstChild<SheetData>(); } I am trying to get a reference to Sheet2, but I cannot find a way to do

Non-volatile UDF always recalculating

浪尽此生 提交于 2019-12-03 03:33:36
I am trying to make a non-volatile UDF but it seems not possible. So here is a my very simple test-UDF: Option Explicit Dim i As Integer Sub Main() i = 0 [A1] = "zyy" MsgBox i End Sub Function Test(rng As Range) Application.Volatile (False) Test = rng.Value i = i + 1 End Function I got a otherwise empty worksheet that uses this function a couple of times, and every time I call Main() and change any cell on the sheet with the UDFs all of them recalculate. How can I make this (any) UDF no-volatile? The Application.Volatile (False) should have that effect but obviously doesn't work. Edit: If I

Could Anyone Show List of Button Face Id in Excel 2010

主宰稳场 提交于 2019-12-03 03:08:29
I would like to create costum menu button using VBA in my excel 2010 file using predefined excel button that use face id. In my case i would like to use "lock" and "refresh" icon, but doesn`t know the face id for that icon. could anyone show or point me the list of button and face id used in excel 2010? Have a look here: Face ID's Its an addin for MS excel. Works for excel 97 and later. The following Sub BarOpen() works with Excel 2010, most probably also many other versions also, and generates in the Tab "Add-Ins" a custom, temporary toolbar with drop-downs to show the FaceIDs from 1 .. 5020

Excel formula to remove space between words in a cell

家住魔仙堡 提交于 2019-12-03 02:19:51
I've a huge data in excel file. For eg: say i've a word like paul son,i've to make it as paulson. input: paul son output: paulson . In some cells ,i've data like mic-li ,when this type of words come,it should not replace any thing,it should only remove spaces in between words. Suppose the data is in the B column, write in the C column the formula: =SUBSTITUTE(B1," ","") Copy&Paste the formula in the whole C column. edit : using commas or semicolons as parameters separator depends on your regional settings (I have to use the semicolons). This is weird I think. Thanks to @tocallaghan and

How to autogenerate certain excel strings from certain inputs as given in example?

好久不见. 提交于 2019-12-02 23:53:09
问题 Basically I want the following in excel: I need that, if I Input following in Sheet 1: A B C 1 Name Size Color 2 Shirt S,M,L Red, Green 3 Trouser 32,34 White, Black, Grey The following output automatically generates in Sheet 2: A B C 1 Name Size Color 2 Shirt-S-Red S Red 3 Shirt-M-Red M Red 4 Shirt-L-Red L Red 5 Shirt-S-Green S Green 6 Shirt-M-Green M Green 7 Shirt-L-Green L Green 8 Trouser-32-White 32 White 9 Trouser-34-White 34 White 10 Trouser-32-Black 32 Black 11 Trouser-34-Black 34 Black