excel-2007

How can I get intellisense to work for UDFs in XLAM files?

▼魔方 西西 提交于 2020-01-04 06:21:09
问题 I have some UDFs in an XLAM file. Intellisense doesn't seem to pickup these UDFs when the XLAM is installed as an add-in. The UDFs themselves work fine in Excel, its just that they don't appear in intellisense. Here I mean intellisense when used on a worksheet. 回答1: There (is) was no way of getting a UDF (VBA, XLL etc) to supply intellisense. This has often been suggested to the Excel team as a worthwhile improvement. (see https://fastexcel.wordpress.com/2016/10/07/writing-efficient-vba-udfs

ColdFusion 8 always opens .XLS, want .XLSX

不想你离开。 提交于 2020-01-03 13:08:22
问题 I am using ColdFusion 8. Doing something like this: <cfheader name="content-disposition" value="attachment; filename=abc.xlsx"> <cfcontent type="application/msexcel"> <html> But I get a file like abc.xlsx.XLS . The reason I'm trying to get an XLSX is because sometimes the XLS version is so large and Office 2007 gets stuck opening it or takes way to long. Only workaround right now is to wait, open the XLS in Office 2007, save as .XLSX and then open it faster. Any help is appreciated! 回答1: I

how to read certain files in a directory in excel VBA

眉间皱痕 提交于 2020-01-03 03:14:35
问题 I want to read certain excel files from a directory and then open them in excel-2007 with VBA. Here is an example: directory: c:\temp file pattern: is xxxxx0123.xls (xxxxx represents the file names). I try to use Application.FileSearch , but it won't work in Excel 2007. Does any one have good suggestions? Thanks in advance 回答1: You can use DIR to find files matching your pattern, ie this code opens these files, grabs their path, and closes the files again The code can be made recursive if you

VBA - Value of an option button in a frame (within an Excel sheet)

我的未来我决定 提交于 2020-01-03 02:40:14
问题 I'm having problems with shapes, frames and option buttons... I'm a total newbie, I've never used them. I just put several option buttons on an Excel sheet (Using the FORM toolbox). I'm trying to check whether my optionbutton is filled or not. So far, I've done the following : Sub SX_EXTERNE() Dim Ws As Worksheet Dim ConBut As Shape Dim Answer As String Set Ws = ThisWorkbook.Sheets("Externe") For Each ConBut In Ws.Shapes If ConBut.Type = msoFormControl Then If ConBut.FormControlType =

Find Match, Copy Row from Sheet1 and Insert Into Sheet2

孤者浪人 提交于 2020-01-03 02:28:29
问题 In Sheet1, I have around 10,000 rows representing different people. Each person has a unique ID located in column D, which is a number sequence stored as text. In Sheet2, I have around 1,200 person entries that have have a reference to a matching person in Sheet1 located in column A. This reference is the same unique ID used in Sheet1. What I would like is to have a macro do is this: read-in the value of cell A1 on Sheet2 find the matching value in column D on Sheet1 copy the matching row in

How to avert the save MessageBox prompt in Excel-VBA?

大城市里の小女人 提交于 2020-01-02 09:39:08
问题 I have a problem here if you look at my codes below after I call the .close line which was the file I initially copied from. It will prompt a save MessageBox message either yes, no, or cancel. Is there anyway I can avoid this save message from appearing programmatic if no was the case could I just programmatic program it no instead? 回答1: Jon is right to suggest Application.DisplayAlerts and if you want to answer no to a save as you suggest Workbooks(Filename1).Close SaveChanges:=False 回答2:

VBA code to add a basic ribbon in Excel 2010?

女生的网名这么多〃 提交于 2020-01-01 17:48:39
问题 I have used products to write ribbons for Excel in C# (addin express) but I need to know how to produce a ribbon using vba. Would someone be able to provide me with some code that inserts an additional ribbon into the toolbar for this? By ribbon I mean where it says "Formulas", "Data", "Review" etc 回答1: You can customize the ribbon in Excel using a combination of XML and VBA. A good starting-point for customizing the ribbon: http://msdn.microsoft.com/en-us/library/office/aa338202%28v=office

Excel (2007) VBA - .Formula with quotes in it

孤街浪徒 提交于 2020-01-01 08:25:10
问题 I tried putting the following code into a program yesterday. VBA called an error. I assume it is because of the double quotes inside the formula. I googled and all results I found just gave the basic of putting formulas in, but none explained how to get around quotes inside. (there was a With statement before this, Pivot is a worksheet name) .Range("A2").Formula = "=IF(Pivot!A5="",A1,Pivot!A5)" Any help is much appreciated. Thanks! 回答1: Whenever in doubt, record a macro if it allows :) Try

How do I get rid of the “cannot empty the clipboard” error? [closed]

社会主义新天地 提交于 2020-01-01 04:58:12
问题 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 7 years ago . Right now, I'm getting it in Excel 2007, but I've gotten the same error in pretty much every version of Excel I've used since 97. The only discernable similarity is that happens on my office PC. It's never bothered me on my home PC. In Excel 2003, I was able to mess around in the clipboard options until it went

Checkboxes for multiple values in a single cell in Excel

≯℡__Kan透↙ 提交于 2020-01-01 03:20:12
问题 I am a C#/.NET developer but am not too familar with Excel programming or VBA. For a side project, I have a spreadsheet that will be used by non-technical users for data entry. Later this spreadsheet will be exported to a different format via a C# command-line program that I wrote so that the data can be dumped into a different system. I need the data values to be entered exactly as the command-line program will expect them to be, so user error due to typos or slight wording differences would