excel-2011

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

人盡茶涼 提交于 2019-12-03 20:28:37
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 the code and processing, I was hoping there may be a method to load the data from the individual CSV files into an array without opening and closing every single file. I am using Excel 2011 for Mac. Ok I am assuming that All 6000 files have the same format. My Test Conditions I have a folder called C:\Temp\ which has

Date for VBA not working in Excel 2011?

∥☆過路亽.° 提交于 2019-12-02 13:33:31
问题 Here is my code, I am attempting, which works BTW on a PC, but not on a Mac, to run this code and have an excel sheet created, named, add a tab, change the color of said tabs, change the name of said tabs, and then transpose the data while maintaining the format of the cells and width and height of the cells to the new worksheet. This works, on a PC.... but when I get onto a Mac, it doesn't. I go into References, and this is what I see. I see Ref Edit Control, and Microsoft Scripting Runtime

Date for VBA not working in Excel 2011?

余生颓废 提交于 2019-12-02 03:51:13
Here is my code, I am attempting, which works BTW on a PC, but not on a Mac, to run this code and have an excel sheet created, named, add a tab, change the color of said tabs, change the name of said tabs, and then transpose the data while maintaining the format of the cells and width and height of the cells to the new worksheet. This works, on a PC.... but when I get onto a Mac, it doesn't. I go into References, and this is what I see. I see Ref Edit Control, and Microsoft Scripting Runtime are missing. I disabled both, and the script gives me an error here still: wbBK2.SaveAs Dir &

Expected End of Statement in formula with quotes

烂漫一生 提交于 2019-12-02 01:18:23
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 do with it. Double-quotes in strings need to be escaped by doubling them up: Range("D2:D56")

Array formula on Excel for Mac

孤者浪人 提交于 2019-11-30 11:44:32
I need to call LINEST in Excel 2011 for Mac, I would say - this was a detective story. My laziness, my curiosity, all was here! I had a homework from university course to use LINEST. I even stopped trying to do so on MAC, because after googling I could not find any solution how to do it. (I have tried EACH AND EVERY combination of Fn Ctrl Alt Cmd Return !) Finally, I found a solution here on stack overflow! I want to mention it again, as it was a long time I spent looking for the solution. I have spent 4 days outside of home, to use just windows PC where it is easy as a pie - F2 , CTRL + SHIFT

Array formula on Excel for Mac

若如初见. 提交于 2019-11-29 17:50:45
问题 I need to call LINEST in Excel 2011 for Mac, I would say - this was a detective story. My laziness, my curiosity, all was here! I had a homework from university course to use LINEST. I even stopped trying to do so on MAC, because after googling I could not find any solution how to do it. (I have tried EACH AND EVERY combination of Fn Ctrl Alt Cmd Return !) Finally, I found a solution here on stack overflow! I want to mention it again, as it was a long time I spent looking for the solution. I

Reordering Chart Data Series in Excel [closed]

不想你离开。 提交于 2019-11-29 09:02:51
How does one reorder series used to create a chart in Excel? For example, I go to the chart, right click > Select Data. In the left column I see series 1, series 2,...,series n. Say, I want to move series 3 after series 4, can it be done from chart view? I don't want to move the data cells in the worksheet. I'm using Excel 2011 (mac os x). Select a series and look in the formula bar. The last argument is the plot order of the series. You can edit this formula just like any other, right in the formula bar. For example, select series 4, then change the 4 to a 3. Right-click any series on the

Combining duplicate entries with unique data in Excel

前提是你 提交于 2019-11-28 06:06:17
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 any hand holding or tutorials you could point me to would be appreciated. This can also be done using

Reordering Chart Data Series in Excel [closed]

妖精的绣舞 提交于 2019-11-28 02:23:49
问题 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 11 months ago . How does one reorder series used to create a chart in Excel? For example, I go to the chart, right click > Select Data. In the left column I see series 1, series 2,...,series n. Say, I want to move series 3 after series 4, can it be done from chart view? I don't want to move the data cells in the worksheet. I

How can I convert a range to a string (VBA)?

*爱你&永不变心* 提交于 2019-11-27 07:10:39
问题 What is the best way to convert a range of cells to a string? I have a function that only takes a string as input so I need to convert the range to a string, while retaining as much of the formatting as possible (i.e. it needs to look like a table or list, not just a string of characters). I've tried working with CStr(), as well as converting from a range to an array and then to a string, but I just get errors. Edit: Code attempt Dim email_answer As Integer email_answer = MsgBox("Do you want