Excel picture tools format vba - excel

In excel & word 2007 there is a picture tools tab that shows up in the ribbon when you insert a picture or clip art and there is the smart art. Is there a way to manipulate these objects and settings (e.g. transparency, position, effects etc) in vba. A macro doesn't seem to work for me either.

I know that in Excel VBA (my experience is prior than 2007), you could manipulate many aspects of images via the Shape object. A good way to explore the Shape object is to record a macro while you try to manipulate the image and then look at the VBA code it created to see what you did. This doesn't always work perfectly, but it's a great way to start.
Also, you might be interested in checking out the answer I gave to a related question about moving images between cells in Excel .
I'm not sure how many aspects of an image you can manipulate just with the Shape object, but it's worth taking a look.

For now I don't believe there is a way to manipulate with code these picture aspects in office 2007.
If anyone out there has a better answer, I will mark it as accepted.

This will help if you want to change the actual picture displayed. It's non-VAB stuff, but the technique is worth knowing about
here

Related

Conditional formatting of a shape in Excel Online

I'm trying to add an arrow to my Excel online document, that changes colour dependent on another cell being positive or negative. In Excel desktop this is easy, but is it possible in the online version?
You can't use macros (to the best of my knowledge), so VBA is out. CF add in's don't work, and you can't use linked pictures.
Any help would be greatly appreciated

Is there a way to make Ribbon changes in excel unique to the current workbook?

This maybe a simple/ridiculous question, but I am trying to make changes to the ribbon in excel (removing all other tabs and just having my own with macros etc).
This is to be used as a basic data entry workbook for other users...
My only issue is that when the changes are made it applies it to every other workbook that I open in excel, I was thinking that there should just a setting that you could change to apply the changes. But looking online I am thinking that I need some VBA, that changes the ribbon on opening and closing of the spreadsheet?
Can anyone confirm/deny this? point me in the right direction?
You can embed your ribbon customizations along with VBA macros into a macro-enabled workbook, so your customizations will be available only to the particular file. The samples that shows how to hide or display ribbon tab/group with getVisible callbacks are available for download.
Thanks for all the replies but it seems as though the only way to do what I wanted to download an UI editor...
Unfortunately, I am limited to what I can download on a work PC/also I just presumed that with a bit of quick VBA magic I would be able to achive what I wanted. But it seems as though that VBA can't edit the ribbon without help from the UI editor.
I think I will just leave the ribbon alone for now!
Take a look at this:
https://github.com/fernandreu/office-ribbonx-editor
This project contains a great guide that you need to read in order to address your question. I will not go over specifics, as you asked to be pointed into the right direction.
The README file specifies how you can add a custom tab/buttons etc. to a particular excel file. This tab will not show up in any other workbook, as it will be encoded directly in the workbook.
So to shortly answer your question - yes, it is possible. Please see the attached documentation, as I cannot guess what you intend to do, as you did not describe what specific effect you wish to achieve.

Excel-VBA Get Code of the design of existing cells

For an application of protocolling some measurements and therefore made a design for the print out of the data. This is a fairly complex design with many highlighted area, marked cells, font size changes, background color, pictures and so on.
My question is: Is there any way to get the design as a VBA code to "store" it without doing it all manually?
I already tried around some with the macro, though I couldn't "read" the current cell design.
Thank you in advance
You could save your empty templates on hidden sheets and copy the required on to the "print" sheet. Storing all of the formatting in code will be difficult to manage unless it's very basic formatting.

Microsoft Excel Formula

Can some one recommend a reference for learning Excel for a programming minded person. I am looking for a less ummm squishy reference then the ones presented by a web search. All I could find was information for mouse monkeys.
I am looking for a syntax and function reference and information about using VBA. I also would appreciate a link to learning access for some one who knows SQL.
Run Excel.
Press Alt-F11. (VBA editor opens).
Press F1. (VBA help opens)
Choose Excel VBA reference.
(And for the Access part of your question: I would suggest almost the same: have a look into Microsoft's original VBA docs which come together with the product, they are definitely for programmers, not for "mouse monkeys").

Is it possible to put a custom GUI on top of an Excel spreadsheet?

A friend of mine has a very complex Excel spreadsheet with many formulas and lots of data that he uses for work. He wants to put a custom GUI on top of it and then wants to sell it to other people in his profession. Basically he wants to make some freestanding software out of his spreadsheet? Is there any way to put a custom GUI on top of an Excel spread sheet? The spreadsheet would just reside in the backend and be a kind of database and do the calculations necessary. I know this is definitely not an elegant solution but I told him I'd look into it. Any ideas?
I use Clear Office.
You can host workbooks in your GUI, host GUI in your workbook. All .NET, no interop.
Excel Interop fits the bill. Code your GUI with WinForms/WPF and .NET; invoke excel in the background to be your calculation engine. Pretty ugly (and probably slow) solution, though.
Check out the book Professional Excel Development by Bovey. It talks about how to do some radical Excel customizations along the lines of what you are suggesting.
Depending on how complex the application/input is, he may be able to use userforms, which are built in to Excel. Alternately, he can set up a sheet as in input form, and use other sheets for data/calculations, and super-hide them. We made a spreadsheet for a company at work, and used both solutions. Userforms can be frustratingly inflexible, but they work.
You can also add in some VBA to show the Userform when the workbook is opened, although if macros are disabled (which they are by default) then it won't work.

Resources