excel-2011

Application.Filedialog support in Mac excel 2011

喜欢而已 提交于 2019-12-18 09:37:44
问题 Couple of questions Is Application.Filedialog(msoFileDialogSaveAs) support in Mac excel 2011 vba? Difference between Application.Filedialog(msoFileDialogSaveAs) and Application.Dialogs(xlDialogSaveAs)? 回答1: I've just answered this question and your question here was referenced. To also support your questions: - Is Application.Filedialog(msoFileDialogSaveAs) support in Mac excel 2011 vba? No it is not, however there is a built in function in Mac VBA called MacScript , which you pass

Combining duplicate entries with unique data in Excel

十年热恋 提交于 2019-12-17 17:59:07
问题 I have an Excel database and I'm trying avoid doing some manual combining of duplicate data. I've got a bunch of listings that are essentially the same aside from the tags column. What I'd like to have it do is combine these 5 listings into 1 listing, making the categories a comma separated list in a single cell. Turn this into this Is there any way of achieving this? My document has a couple thousand listings, so I'm obviously trying to avoid the manual edit route. I'm an Excel novice, so

Cross Compatibility of Millisecond Timer Resolution in Excel VBA

自古美人都是妖i 提交于 2019-12-13 06:07:31
问题 I would like to get fractional timer resolution in an Excel VBA project that has to be compatible with Windows Excel 2007 and Mac OS Excel 2011. Ive found a method in windows utilizing sleep from kernel32.dll and a method on Mac OS using MacScript("GetMilliSec"). I currently have limited access to a Mac, so I am not able to test this out directly right now. If I declare Sleep like this: Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long) Will an error be raised when

Display the upcoming due date

懵懂的女人 提交于 2019-12-13 03:36:33
问题 I am working with Microsoft Excel for Mac 2011 doing some personal finance and trying to devise a formula to display a specific date. I have a credit card bill that is due on the 24th of every month. I have the name in Column A, and the Date it is due in Column B. Say that the current month is October, and the bill will be due on the 24th, I want it to display 10/24/15 (mm/dd/yy). I do not want to show any previous dates or current date, I only want to display the upcoming due date, and I

Workbook.SaveAs() to different folder in Office 2011 for Mac

岁酱吖の 提交于 2019-12-12 02:26:40
问题 How to save xls to another folder? When I use "/" in save path it replaces then with ":". When I try to use "\" it saves the file with "\" in file name. 回答1: Use the Application.PathSeparator property and as an added bonus it'll be platform agnostic. myPath = "myDirectory" & Application.PathSeparator & "mySubDirectory" & Application.PathSeparator & "myFileName" 来源: https://stackoverflow.com/questions/7198871/workbook-saveas-to-different-folder-in-office-2011-for-mac

Dynamically construct range to use in XIRR formula

大兔子大兔子 提交于 2019-12-11 08:49:29
问题 I have a sheet in this form: Fund | Date | Amount A | 10-Jan-05 | -5000 A | 10-Feb-05 | -5000 A | 08-Oct-13 | 12500 B | 10-Sep-05 | -5000 B | 10-Oct-05 | -5000 B | 10-Nov-05 | -5000 B | 08-Oct-13 | 22500 I'm looking for an output column that provides the XIRR for each fund. The XIRR function takes values and dates as ranges. I need a way to dynamically construct the range using the fund name as a search criteria. Fund | XIRR A | ... B | ... I could manually specify the range for each fund

What does “=R[-115]C” mean in VBA for Excel 2011 on Mac?

六月ゝ 毕业季﹏ 提交于 2019-12-10 22:19:03
问题 What does " =R[-115]C " mean in VBA for Excel 2011 on Mac in below code? Range("F171").Select 'to select a cell ActiveCell.FormulaR1C1 = "=R[-115]C" 回答1: It's the offset from the cell that the formula is in. The example you posted... "=R[-115]C " ...would be offset by -115 rows in the same column, so would be equivalent to =F56 . You can do the same thing with the columns. This... Range("A1").Select ActiveCell.FormulaR1C1 = "=RC[1]" ...would give you the formula =B1 . 来源: https:/

Create Word file from Excel 2011

会有一股神秘感。 提交于 2019-12-06 08:10:39
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.) 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 multiple Word files. What is required for the code to work under Excel2011 (mac) vba is a means to test if

Load contents of CSV file to array without opening file [closed]

为君一笑 提交于 2019-12-05 06:08:50
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I have a requirement to collate over 6000 csv files into a single csv document. The current VBA process is: 1. Open individual CSV data file 2. Load contents of file to array based on number of rows 3. Close individual CSV file 4. Process array In order to improve efficiency of

Disable all dialog boxes in Excel while running VB script?

廉价感情. 提交于 2019-12-03 23:57:40
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 enabling macros, and also warn that saving as XLSX strips the file of all macros. Considering the type of