excel-2011

What are macid filetypes in excel vba

落花浮王杯 提交于 2021-02-05 11:36:44
问题 What are all the possible MacID("filetype") I need the one specifically for CSV but i couldn't find a list anywhere online surprisingly. 回答1: First run: mdls "FileName" Find the TypeCode in the Output: kMDItemFSTypeCode = "TEXT" You can use: Dir(Path,MacID("TEXT")) 回答2: Just a little aside for this thread. Yes there are few places to find details of the MacIDs, but beware. If a file is create on a PC it may not have its MacID set correctly, or at all for that matter. I am working with Excel

VLOOKUP not working in excel for MAC 2011

浪子不回头ぞ 提交于 2021-01-28 05:53:53
问题 I have a problem when using VLOOKUP in excel for MAC 2011. I am looking up for a value two column in different sheet, Column A is the one I want to check, Column B is the reference. =VLOOKUP(A1, Sheet2!$A$1:$B$1000,2,0) Some of boxes in Column A get a value return, but the other cannot. For those which cannot, when I retype the words inside the box, and I get the value returned. I try to copy the Column A and selectively paste with value only, but those cannot get a returned value remained

“Object doesn't support this action” for a drop down menu in Excel 2011 (Mac OS X)

本秂侑毒 提交于 2020-01-14 14:12:38
问题 I have a big Excel Workbook made with Office 2010 with some VBA code. Everything seems to work fine apart the drop down menus. Precisely, they work, graphically, but Me.Shapes("Drop Down 1").ControlFormat throws an "Object doesn't support this action" error (I am sure that "Drop Down 1" is the correct name, etc.), precisely, it gets referenced correctly (e.g. shape = Me.Shapes(1) works) but it doesn't seem to like ControlFormat . Google doesn't help much; any suggestions? I'm quite new to VBA

Disable all dialog boxes in Excel while running VB script?

最后都变了- 提交于 2020-01-01 07:57:08
问题 I have some code in VB that saves all XLSM files as XLSX. I already have the code that will do that for me, but dialog boxes show up for every action. This was fine for a few dozen files. However, I'm going to use this on hundreds of XLSM files at once, and I can't just sit at my computer all day clicking dialog boxes over and over. The code I've tried is pretty much: Application.DisplayAlerts = False While this doesn't cause an error, it also doesn't work. The boxes give a warning about

Expected End of Statement in formula with quotes

我们两清 提交于 2019-12-31 03:01:17
问题 Sub FillNames() Range("D2:D56").SpecialCells(xlCellTypeBlanks).Formula = _ "=IF(AND(C>800,C<900), "YES", "NO")" End Sub I get the compile error expected: end of statement. It seems to have issue with the quotes around the words YES and NO. If I remove the quotes around YES and NO and run the macro, it will run and print what is in the formula quotes into the cell. I don't understand then how the quotes cause a syntax error. I am running Excel 2011 for Mac, don't know if that has anything to

Excel SUMIFS of cells based upon multiple criteria

♀尐吖头ヾ 提交于 2019-12-25 18:25:29
问题 I'm trying to create a formula which calculates the sum an array of fields based upon multiple criteria. This relates to various franchises and the promotions which they run during the year My document contains two sheets with the following information within in it - 'Daily Revenues'!A:A - date. There is one entry per franchise per day with the revenue for that specific day. 'Daily Revenues'!B:B - the franchise name 'Daily Revenues'!D:D - number. The daily revenue for that day. 'Promotions'!I

Excel 2011 - How to change output of textJoin from value of cell, to the cell name, so I can put it in Sum() to add those values

拥有回忆 提交于 2019-12-25 01:05:51
问题 I'm using the textJoin UDF listed below to combine values from various rows into a single cell; it displays each value. However, I want to know if I can manipulate the output of this UDF so that instead of simply displaying the values I can add the values and get the sum of the values. Or ideally, if I can just modify variables to instruct it to ADD the values. Does anyone know if this UDF (which I didn't create) can be instructed to output the Cell names (A2, B2, C2), and if so can I put

vba excel shape

ぃ、小莉子 提交于 2019-12-23 19:01:40
问题 I've used a small subroutine to insert a picture into my sheet by ActiveSheet.Pictures.Insert(URL).Select This works fine with Excel 2003 (Windows), but does not work with Excel 2011 (Mac) any more. Therefore I modified my subroutine (like proposed http://www.launchexcel.com/google-maps-excel-demo/), but the subroutine stops at theShape.Fill.UserPicture URL with the error message "-2147024894 (80070002) Fehler der Methode UserPicture des Objekts FillFormat" The rectangle is green! Sub Q1()

VBA - Search and remove duplicates

旧巷老猫 提交于 2019-12-23 06:08:36
问题 I'm looking for an algorithm for which I do not have the VBA knowledge to script myself. So I'm stuck. It isn't through lack of effort trying because I have given it a go (plus, this bit of code is the last remaining piece of my bigger VBA code) I simply lack the knowledge/experience/skill... Basically, I have an Excel file. In this file is a sheet, "sheet1". Sheet1 contains many rows of data. The number of rows contained in sheet1 can vary from 1 to n. Sometimes, I may have 50 while other

Create Word file from Excel 2011

China☆狼群 提交于 2019-12-22 13:03:11
问题 The usual approach to create a Word document from Excel VBA: Set WD = CreateObject("Word.Document") results in an error when run with Excel 2011. Any idea how a Word document can be created in Excel 2011 with VBA? (I do not want to use AppleScript as I want the program to be able to run on PCs also.) 回答1: The following code, based on the suggestion by bretville, seems to work both on mac (tested on Excel2011) and on pc (tested on Excel2007) and can be run repetedly, thus allowing creation of