Powerpoint / Excel VBA Formatting multiple duplicate slides / selecting images / mouse click - excel

Essentially I have around 90 slides that all have the same format of 5 images pasted from an excel sheet through a different macro and I'd like to have them moved around to obviously tidy up the slides.
I have macros to move all of the objects to the right places and crop one of them.
The only issue I have is how to get the code to select the correct image.
My thoughts were to have the mouse click in certain locations. I have managed to get a macro tomove the mouse to the correct position but it does not click / select the image in that location properly.
It would be easier to select the images possibly by name, I am unsure how to do this and also a few of the images have the same object names of 'image1' 'image2' so I'm unsure if that would work. If anyone has any suggestions or would like more details :)

Related

Hyperlinking to another image within Excel

I have an Excel file here, and I am trying to click the display hyperlink to take me to a specific image in the other sheet, which is the "Definitions" tab. But it is only letting me reference a specific cell in a document. I have genuinely tried looking for a solution on my own but I have not been able to find one. I have a bunch of images in the "Definitions" Tab and I want to hyperlink to a specific image. There is one image for each hyperlink.
You can link to a cell where the picture is located. In this way you come to the right place when clicking the link.
Make a picture setting to move the picture with cells

Copying data from a dropdown menu to a seperate sheet as a report using VBA

Complete beginner with VBA and I think I'm doing something majorly wrong.
So context;
Creating a user friendly sheet to do checks on items etc. To keep it as simple as possible for other people I've decided to use drop down menus to input the majority of the data and tick boxes to say when the check has been done.
From here I want to add a big old button that will transfer the data from the cells, dropdown menu and tick boxes to another sheet or workbook.
I would also need the sheet or workbook to place the date the checks were done and create a new line with the information. So that I can look at a single sheet and see the wear and tear on the equipment in one form. (layout of this can be sorted out after wards just how to get it to go to a blank line etc.)
And finally to save the document.
drop down information is linked from another sheet within the workbook.
Now I've tried some code to work it out myself and it either doesn't copy the data as the cell is blank (drop down menus) or it just shoots up an error on the VBA page.
Could anyone assist in helping me work this code out? Even if its just the command syntax's that I would need to use.
Thanks in advance
Peter

Selecting an option value within a frame

OK. I've been playing with this for way too long now. I am doing a web-scrape using the chrome-driver for Selenium and VBA. I am able to paste elements from my Excel file onto the page (includes switching frames), switching to a next window, getting results and back to original webpage and moving to next row in Excel, etc. My problem is I have yet to be able to discover the proper method to select an item in a drop-down box. Any direction would be greatly appreciated.

Excel linked pictures change scale after copying sheet

I have created a dashboard sheet by using the camera tool to paste graphs from other sheets as linked picture in the dashboard sheet. When I copy the whole sheet (by right clicking the sheet tab) and paste it as a new sheet in the same workbook, the scale of my graphs reverts to the scale of the original graph. This results in the whole dashboard being distorted with overlapping graphs.
What did I do already:
googled it
I have tried numerous combinations of "Lock aspect ratio" and "Relative to original picture size" under Size, and "Move but don't size with cells", "Don't move or size with cells" under Properties.
It looks like copying every object one by one works, but if you copy the whole sheet it distorts everything.
Another guy posted exactly the same problem here but he didn't get any answer.
It would be great if someone is able to help me with this annoying problem.
Johan
I had the same problem - when copying a worksheet with a paste link picture and it loses scale
I got around it by creating a text box in the origin square and then putting the picture into the text box
Then when copying the sheet with the linked picture file it does not lose scale
I found a way around
Create a chart object (delete all chart related graphics = empty area).
Set width, height of chart object equal to your linked picture.
Click your linked picture to select and copy (Ctrl+C) then unselect.
Click chart object to select and paste (Ctrl+P)
DONE!
Now, your linked picture size won't change anymore

Loading Image from URL in Excel

Basically I have a gigantic excel spread sheet with over 20,000 URL's. It would be very inefficient of me to click on each link to check the image. Instead I was wondering if I could take the url from one cell and load the image into a different cell. This of course would have to be a loop as I have so many images to load. So far I found a thread on this already but I have no idea how to implement this code.
How to get images to appear in Excel given image url
If someone could tell me how to use this code that would be great and you will also save my sanity. Thanks!
While your Excel sheet is open, press ALT+F11 (Edit: Not Ctrl)
This will open the Visual Basic editor. From there, locate the project explorer to the left side of the screen. It should appear something like VBAProject (YourWorkBookName.XLS)
right click it and select Insert -> Module.
You should see a blank white space for you to put code in. Just paste the code you found from the other post, but make sure you paste it inside a SUB definition , like this:
Sub AnyNameCanBeChoosen()
' Paste your code Here
End Sub
Then press F5 to execute your code.

Resources