excel-2010

Insert into Access Select from Excel from within Access VBA

做~自己de王妃 提交于 2019-12-21 21:08:21
问题 I have an Access 2010 database with all tables linked to SQL Server 2014 tables. I have an Excel 2010 (.xlsx) file (though it starts as a .csv, and I could leave it that way), that I need to import into a SQL Server table via VBA code. I know that there are import tools available to do this, however, I have 20+ XLS files per month to import, and would rather have an automated method of doing this. All my VBA code resides in the Access database, and all the examples of VBA code I've been able

Updating contents of an iRibbon control from another control's callback

二次信任 提交于 2019-12-21 17:33:02
问题 Back in the old days of VBA, we used to be able to directly access controls on a form by name. I'm a little perplexed by how to do this in VBA 2010 (or if it's even possible any longer). Say I have a ribbon control with a dropdown list called "channelList", and elsewhere on the ribbon I have a textbox called "labelText". Each of these items has a unique callback function - when I type something into labelText, its callback fires, and when I select an item from the channelList listbox, its

Excel 2010 date formatting not working on some cells but on others

别来无恙 提交于 2019-12-21 06:04:55
问题 In Excel 2010, I have a range of what looks like dates. When I attempt to format them only some changed the others remain unchanged. To be clear the right aligned 'dates' change and the left aligned 'dates' do not. (refer to 'Column M') I can format the right aligned dates into anything else such as percentage, general etc. whatever. The right aligned dates change and the left aligned remain unchanged even though they are also selected. I can edit the left aligned cells i.e. change the value

How do I track who uses my Excel spreadsheet?

人盡茶涼 提交于 2019-12-21 02:57:14
问题 I created an Excel spreadsheet that my boss wants to put on the company's internal website. The spreadsheet contains some seldom-used, esoteric, but handy functions that only certain employees within the company will find really useful. The problem is that I don't know who the future users are, and my boss wants me to identify who uses my spreadsheet. He asked that I password-protect the Excel spreadsheet in such a way that one password does NOT unlock all of the copies that people can

split a single row of data into multiple unique rows into a new sheet to include headers as values and cell contents as values

痞子三分冷 提交于 2019-12-20 07:53:05
问题 I have found quite a lot of data splitting VBA code posts but none that splits it by contents and pulls in the header and puts the results into a new sheet (I need the original data to be left in its original state). I have a spreadsheet that contains values in columns with a country as a header and I need to split each row into new rows in a new sheet with the country listed in a new column and the value from the same country column in the new row. I want to ignore any country headers where

Remove “Save & Send” from File menu in Excel 2010 using custom XML

此生再无相见时 提交于 2019-12-20 06:16:40
问题 Could someone please help me modify the following XML code (Office 2007) so that it works in Office 2010? I've included my XML from Office 2007 below: <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <ribbon> <officeMenu> <menu idMso="FileSendMenu" enabled="false"/> <menu idMso="FileEmailAsPdfEmailAttachment" enabled="false"/> <menu idMso="FileEmailAsXpsEmailAttachment" enabled="false"/> <menu idMso="FileSendAsAttachment" enabled="false"/> </officeMenu> </ribbon> I

Excel 2010 Macro to compare two columns for finding the matched value

点点圈 提交于 2019-12-20 06:07:49
问题 I am very new to Excel macros and VBA, kindly help me please with my below situation. Here is the situation, i have two sheets (sheet1 and sheet 2) in sheet1 there is two columns name and number and in sheet2 i have numbers along its other information like date, charging and etc. Sheet 1 No Name PhoneNumber 1 Bob 7254 2 Cristin 5468 3 Luara 1234 Sheet2 No PhoneNumber Date Charged Name 1 1145 12/30/2014 2$ 2 7254 11/26/2014 3$ 3 2365 3/9/2014 7$ 4 5468 3/10/2014 5 1234 3/11/2014 What i want is

Paste Values instead of formulas with PasteSpecial - VBANewbie

这一生的挚爱 提交于 2019-12-20 05:11:14
问题 I am absolutely new to vba. I want to copy certain values in cells from two tabs ("Equities", "Bonds") into a third one ("ZSM") with the following code. Sub AllesAufEinmal() Call Spalten Call Wertpapiere Call Daten End Sub Sub Spalten() ' ' Spalten Macro ' Sheets("Equities").Select Range("A4").Select Range(Selection, Selection.End(xlToRight)).Select Selection.Copy Sheets("ZSM").Select Range("A4").Select ActiveSheet.Paste Range("A4").Select Sheets("Bonds").Select Range("B4").Select Range

How to count “No” in column C base on Name & Id?

你说的曾经没有我的故事 提交于 2019-12-20 04:55:34
问题 I have 3 columns. -----A-----B-----C----- ---Name----ID---Report In column A I have Names(Can Repeat) In column B I have IDs (can repeat with same ID for different names) In column C I have Yes and No(Can Repeat with NO for same ID) I need help to count Number of No's in column C for John(Column A) but only count once if column B has duplicate ID. I can do this via filters and stuff but I need to do it using formula only please. Here is file I am working on(dropbox link) Dropbox excel file

Excel - How to count number of rows in range (i.e. various columns) that contain certain string?

末鹿安然 提交于 2019-12-20 04:38:08
问题 I have a list A of strings and I want to see if and if yes in how many rows each string is represented in range B. My data looks something like this: List A: E 1 aaa 2 bbb 3 ccc Range B: A B C 1 aaa --- --- 2 bbb ccc bbb 3 aaa --- --- My desired result would be that in list A for "aaa" it would tell me 2, for "bbb" 1 and for "ccc" 1. Have been trying to do this with the below array formula but it doesn't seem to be working: =SUM(IF(COUNTIF(Range B,List A($A1)>0,1,0)) 回答1: As much as I like to