excel-2010

How Can I Prevent The Suggestion of Custom VBA Functions When Writing Formulas in Excel?

廉价感情. 提交于 2019-12-10 21:22:05
问题 I am writing a range of VBA functions / subs that can be reused in a number of projects. The issue I have is that these functions are listed in the suggested formula functions when using sheets. Making the functions private will prevent this, but what it will also do is remove the handy hints showing the parameters for the functions when called from a module other than where the function is stored. Does anyone know of a way to prevent the suggestion of custom functions without making them

Solution for Deploying & Updating Document Level VSTO Addin Including the Document

佐手、 提交于 2019-12-10 20:36:56
问题 Do any of you have advice on methods for deploying an office VSTO addin, especially Excel, that makes it easy to update and deploy the document as well as the addin. I have a document level addin for Excel 2010 that I created using VSTO. I currently deploy it using click once. However, this has a few problems. The first problem is that I publish it to ftp then users install it from my website. Since the document and addin are downloaded from the internet, I obviously have trouble getting

How to export HTML table with 100K records with number formatting without memory exhaust

这一生的挚爱 提交于 2019-12-10 20:19:06
问题 I'm using PHP and MySQL to fetch the data to HTML Table. The data is supposed to download the HTML in Excel File. Following code is used: $filename = "individual_list_" . date('Ymdhms') . ".xls"; header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=\"$filename\""); $html='<style>.num {mso-number-format:General;}.text{mso-number-format:"\@";}</style><table border=1>'; $rowCount=1; foreach ($export_data as $key => $row) { if(!$header) { $header

PivotCaches.add Error 5 - 2003 to 2010 Macros

ぃ、小莉子 提交于 2019-12-10 20:15:30
问题 I have an Excel 2003 .xls file that I am trying to run in Excel 2010. I first saved the file as .xlsm and added the directory as trusted in the Trust Center. I am getting an error code (indicated below by the arrows). Note: If I change the PivotTableVersion to 12, it still gives me the same error. Code is below. Sub Create_pivot() Wbname = ActiveWorkbook.Name ' Insert columns to make room for pivot table Columns("A:I").Select Selection.Insert Shift:=xlToRight myData = Sheets(ActiveSheet.Name)

VBA Dir function not working on Excel 2010

青春壹個敷衍的年華 提交于 2019-12-10 20:08:34
问题 I mapped an intranet location using the File Explorer. i.e. mapped http://intranet.XXXXXXX.com/mydir/ to M:\ I'm using the Dir function to test if a file is present in that location: Dim FileExists as Boolean FileExists = Dir("M:\myfile") <> "" If FileExists Then MsgBox "File found in M:" I run that macro on Excel 2007 and it Works Fine. When I run it on Excel 2010 though, Dir("M:\myfile") always returns "", even if the file is present in the specified location. I can´t find a solution that

Check if one value in one column is in another column

半腔热情 提交于 2019-12-10 19:57:34
问题 I want to check if the dates in the Date2 column match the dates in the Date1 column and which dates do not match. As you can see for the first 25 it matches, but in the end there are 10 rows empty which means that these values are missing. I tried: =VLOOKUP(C2:C3020;B2:C3037;C2;TRUE) However that only gives me #REF! back. Is there probably another way to find out which dates do not match? I appreciate your answer! 回答1: You should use following formula: =VLOOKUP(C2;$B$2:$B$3037;1;FALSE) just

Terminating all explorer instances via VBA - Excel

笑着哭i 提交于 2019-12-10 15:55:35
问题 Private Sub CommandButton1_Click() Dim objWMI As Object, objProcess As Object, objProcesses As Object Set objWMI = GetObject("winmgmts://.") Set objProcesses = objWMI.ExecQuery("Select * FROM Win32_Process Where Name = 'iexplore.exe'") For Each objProcess In objProcesses objProcess.Terminate Next Set objProcesses = Nothing Set objWMI = Nothing Unload WebForm End Sub Trying to use this as a way to close out all instances of Explorer before running some functions that retrieve data from web

Convert HEX to RGB in Excel

有些话、适合烂在心里 提交于 2019-12-10 14:16:02
问题 I have a column "HEX" and three columns "R", "G", and "B". How can I convert a HEX to RGB, e.g. ff0000 to R=255 , G=0 , and B=0 ? I know that the first 2 characters ff belongs to "R", the next 2 00 belongs to "G", and the final 2 00 belongs to "B". So I will have to use =LEFT(A1, 2) for "R", =RIGHT(LEFT(A1, 4), 2) , and =RIGHT(A1, 2) for the last. But how can I convert ff to 255 and 00 to 0 , etc.? I guess I will have to do something to parse from hexadecimal (base 16) to decimal (base 10)? I

Select and print multiple sheets in one print job Excel VBA

 ̄綄美尐妖づ 提交于 2019-12-10 12:13:24
问题 I have inherited this awfulness, and been asked to make updates. Currently this workbook is built with one sheet that has a bunch of checkboxes, all associated with other sheets in the workbook. The user selects checkboxes, and then hits a button to print the sheets associated with each checkbox that is checked. The way it's built now, it runs a print job for each sheet selected. I have been asked to run one print job for all sheets selected (to avoid having a hundred cover sheets). I have

EXCEL 2010: Split Cells using VBA to multiple Cells

偶尔善良 提交于 2019-12-10 11:43:22
问题 I am looking for some help converting my formulas to VBA code. My data is currently in Column ($T10) I currently have rows of data similar to: Jane Doe (doe.jane@___.com) JOHN DOE, SR (noemail-8858) first second DE surname surname2 (email@_______.com) first middle surname (email@_____.net) Formulas to get the 'normal' names: [First Surname] =IF($C2678=1,(LEFT(B2684,SEARCH("(",B2684)-1)),"") [first name] =IF($C4068=1,(LEFT(TRIM(B4074),FIND(" ",TRIM(B4074))-1)),"") [middle name] =IF($C3888=1,