So my visual studio ended up crashing due to my hard drive dying. Unfortunately the work I had completed yesterday to my form was corrupted. Luckily I had a backup and then performed a beyond compare on the designer.cs file. I took all of the new buttons and then had to fix any errors when I opened the file due to the code in the .cs file not being there. Also to be noted I could not use the original .cs file since I was full of nulls. I just took in the old one.
I am being asked to provide weekly data updates and …. I hate paperwork, especially when no matter how many of these I create, no one looks at them but they keep telling me that thisor that column is missing. Well SharePoint Lists are a perfect place to keep the action log and the updates for those actions, but people want to keep using Excel. It is mainly because they don’t know how or what sharepoint lists do – but Excel – they know. My question to be answered is “how can I work in sharepoint and do a query to get a report that they will [never] be happy with”. Lets explore this. I have office 2013 and SharePoint 2013 now.
- Using SharePoint lists as data sources with Excel Services (SharePoint Server 2010) (look on the left sub-menu – lots of different angles to look at)
- SharePoint Dashboard Designer 2013 (you have to know your root URL to “open” the site. I had to take my …./SitePages/Home.aspx off the url and that was it)
- How 2007 gets around not being able to use SharePoint as a list
- Getting closer … “excel to query a sharepoint list“
When I created the html only the ThisAddin Namespace was showing up. This is a known error detailed here. The workaround/fix was to check “Include root namespace container” in the “Help File” section. This was a bit hard to find, but if you select “Help File” you will see the check box right below “Conceptual content placement”. Once checked all namespaces are now shown in the html once the build is performed again.
A good link on how to create the sandcastle documentation can be found here.
Common Error when compiling the VBA using the VSTO is found here. In order to fix it, I changed the long parameter in the VSTO to Int32. Then the VBA compiled fine.
Have to close excel in order to build the project.
Don’t need a public interface. Only these lines of code before the public worksheet object:
In order to add a reference to the VSTO you must click on “Register for COM interop”. This creates a .tbl file that is the reference that you need to add in order to use the VSTO. The “Register for COM interop” is found i the Project Properties -> Build -> Output.
Once the reference is added (you may have to check it as well) to Excel, hit “F2” from the VBA code which opens the Object Browser. Navigate to the VSTO class and check that none of the Members has “Unknown” as a property. If so, then this is due to an improper variable type. See the Compatible Variable Types between VBA and VSTO link. Fix any unknown types in the VSTO code and recompile.
In VBA I received the following error:
In order to fix this, instead of using a cast to
(Int32), I used
- Compatible Variable Types between VBA and VSTO
- A basic diff beteen VBA and VSTO – a little to basic – but it is well written. So here it is.
- Function marked as restricted error … (MSDN)
- Registering a file with COM (regasm.exe)
- Expose VSTO addin to VBA (scroll down to July 13, 2012 – that started some success)
- There might be some help in making UDF’s with VSTO which is not straightforward.
- Excel-DNA is an interesting free idea. It might have some solutions as they have gotten over some hurdles with UDFs etc.
- Could it be 32bit – WHOA – working – change the Regasm and the CPU to 32bit. Then we will try backing off as many 32 bit dependancies as possible. Ideally working in 64 bit would be better for pure VSTO.
- it is 64 bit that make “unknown” in VBA’s object browser
I got this error when my VSTO program was developed with Excel 2016 and now I am using a computer with Excel 2013. Instead of editing the csproject file to point to 2013 and having to perform multiple steps, I found this simple solution online instead.
When I downloaded my VSTO program to a new computer from a github branch and attempted to build the project again I received the error: “Unable to find manifest signing certificate”.
I did some Google searching and found the stack overflow article with the proper solution.
Once I deleted the code lines I was able to build the project.
Alternatively, you can create a Test Certificate from the Signing tab in the Project Properties since I was also unable to “Select from Store…” to get a signing certificate.
I was moving computers and had to install Visual Studio again to keep working on my VSTO addin. The setup project was not recognized and I was not able to open it.
MSDN has a perfect article that helped me remember how to Get InstallShield Limited Edition installer file.
This article discusses the order of things going on and methods called in what order of your VSTO addin
Once installed I was able to view the setup project again.
Well – if you are looking to make money – suggest the Ubiquity Networks Unifi product. You can spend hours configuring it and getting seemingly no where. Then… it works. ARGGGG. OK – here are some lessons learned. Once it is up – the system rocks out. $120 or $180 (5G) per device – can’t go wrong but the setup – still cheaper than the big guys and it is easy to configure once a device is adopted. The stats are out of this world awesome and you can lock people out, VLAN etc. Here are more links that I wrote.
First, save a backup. Of course mine didn’t work – so nightmare again. I installed this at the other campus of this customer and it too was a nightmare. Here are the steps Continue reading
First, did you know you can type VBA from the command line? Use the vbstmt command. Here is how to clear all groups. But getting back to the topic at hand. So named Selection Sets – you can’t use them. For example – using the CHSPACE command initiated by VBA (SendCommand) asks for a selection – well you cannot use the selection set name – you CAN group that selection set and name it with an UPPER CASE (did I say UPPERCASE?) name and when you are prompted for a selection – then give it the GROUP name. Then delete your group and you have what you need. You can even see the grips! Here is how I figured it out – these guys helped a lot.