excel-vba

VBA HTML Tag Hierarchy

懵懂的女人 提交于 2020-01-14 06:38:27
问题 A simple question. I am trying to write a procedure to parse the HTML of this Site A part of the source code (lines 154 to 174) that is sufficient for a paradigm is: <p>(British Aircraft Company)</p> <ul> <li><a href="/wiki/B.A.C._I" title="B.A.C. I" class="mw-redirect">B.A.C. I</a></li> <li><a href="/wiki/B.A.C._II" title="B.A.C. II" class="mw-redirect">B.A.C. II</a></li> <li><a href="/wiki/B.A.C._III" title="B.A.C. III" class="mw-redirect">B.A.C. III</a></li> <li><a href="/wiki/B.A.C._IV"

Importing specific web data to excel using VBA

流过昼夜 提交于 2020-01-14 05:31:16
问题 I'm very much beginner to the VBA coding scene (web scripting is more my thing) but I have an excel based program I need to create that will import data from a intranet web based application into a spreadsheet. Here's the gist of what I'm looking to set up... In the spreadsheet the user will enter the following info: username, password, list of customer account numbers and a date range. The user will then click a "command button" that will make the following happen: Open web based program,

VBA / .Net download files from password protected website via Windows Security

♀尐吖头ヾ 提交于 2020-01-14 04:42:23
问题 I have a SharePoint test website (Azure SharePoint farm) which contains several image files and some document templates. I want to download the images to my local drive. I anticipate looping through a list of URLs, e.g. http://mySharePointSite/Sites/Images/Image01.png and downloading each in turn. I've tried URLDownloadToFile which works great if I put the images on a regular website but I'm unable to get past Windows Security with this approach. I had a go at creating an InternetExplorer

VBA code to loop and update MS access database column from Excel

拜拜、爱过 提交于 2020-01-14 04:42:05
问题 Background: I have an excel spreadsheet that retrieves data from an MS Access database. That code works fine. It retrieves records that have the "comments" field as blank. Users update the comments field in Excel and click a button. The Ask: Once the button is clicked, the VBA code must loop through all retrieved records in my excel sheet and those records that are marked "completed" in excel must update the same comment in the "comments field" in my database. I have looked at this article

VBA How to identify if a column's contents is numerical?

孤街浪徒 提交于 2020-01-14 03:34:08
问题 I have got a qestion regarding Excel VBA. I have to perform this task automatically. Is there any possibility to check whether an entire column's contents (not talking about a cell format) is numerical (containing only numbers)? Of course, I know that an alternative way is avaible, i.e. going down cell by cell. I know that a set filter can identify whether the column is numerical. How to get this information via VBA? 回答1: COUNT counts numbers; COUNTA counts numbers and text. =Count(A:A)

VBA How to identify if a column's contents is numerical?

此生再无相见时 提交于 2020-01-14 03:34:05
问题 I have got a qestion regarding Excel VBA. I have to perform this task automatically. Is there any possibility to check whether an entire column's contents (not talking about a cell format) is numerical (containing only numbers)? Of course, I know that an alternative way is avaible, i.e. going down cell by cell. I know that a set filter can identify whether the column is numerical. How to get this information via VBA? 回答1: COUNT counts numbers; COUNTA counts numbers and text. =Count(A:A)

VBA - Count Values within a certain Date Range

允我心安 提交于 2020-01-14 03:15:11
问题 First, Let me tell you the script that i want to achieve. I need a script that will count the values within a date range the range of date is 3 months, I have a source file which contains 3 months of data now i need to count the data by months if the data is within the months(3) tagged it as selected..(at least one value per month(up to 3)) Sample: `Header A|Header B |Header C| white | 1/1/2016 | | white | 2/2/2016 | | white | 3/3/2016 | | black | 1/1/2016 | | black | 2/2/2016 | | grey | 3/3

Create an average of multiple excel chart without the data source

▼魔方 西西 提交于 2020-01-14 03:13:09
问题 Thought provoking problem (for me at least). Normally when creating a chart you have your data and then use it to create the chart. If you then copy the chart to another workbook, the values on the chart stay the same but there is "no available" data source in the new workbook. I want to create a new chart which is the average of multiple copied charts. Is this possible in excel/vba? I can't even try recording a macro and going from there as I don't know if its possible to "average" multiple

How to create a new sheet/table in an .xlsx file using ADO in excel vba

谁说我不能喝 提交于 2020-01-14 03:04:32
问题 Hi I'm trying to create a function that will store a range of data selected by a user along with a user's custom name and then using ADO the data will be stored in a new Excel sheet with the user's custom name as the sheet name. So far I've gotten an ADO connection working and can read and write data to the .xlsx file but when I try and create a new sheet by creating a new table I get an error that my sheet name is not correct. I've used test and testName and after digging around I am stumped

Registering udf in excel 2003 addin

…衆ロ難τιáo~ 提交于 2020-01-14 03:01:47
问题 When I add some description to udf in Excel 2003 like: Application.MacroOptions _ Macro:= "MyMacro", _ Category:= "MyCategory" _ Description:= "MyDesc" and save the workbook as *.xla to my addin directory, the udf is registering correct when the add in is installed. But if I close the excel and open it again, the udf is still available, but disappears from function wisard. If I place the registration code above to Workbook_Open excel reports the error: can't modify the hidden workbook. If I