VBA help to create button that moves to next row after taking screenshot

Ducklings23

New Member
Joined
Mar 11, 2020
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
Hi all. I've got some code but it's not working exactly as I intended. I'm trying to create a button within a cell in my "Change Log" worksheet that when clicked takes a screenshot of specific cells in the "Summaries" worksheet, storing the screenshot in a third sheet "SummaryScreenshots". I then want to button to move down into the next row in "Change Log", and for the whole process to be repeatable, with all the screenshots saved in "SummaryScreenshots".

If possible, I'd also like each screenshot to generate a date/time stamp, so that they are unique and that they get stored in "SummaryScreenshots" one after the other. These last two requirements aren't within my current code yet, so any help with that additional functionality would be appreciated. Currently the code creates a button in the right sheet and takes the correct screenshot, storing it in the right place. But the button doesn't move afterwards as intended.

1711025846142.png
 

Attachments

  • 1711025710101.png
    1711025710101.png
    55.9 KB · Views: 5

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
screenShotName = format(Now,"yymmddhhnnss")

'next row
activecell.offset(1,0).select
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,958
Members
449,096
Latest member
Anshu121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top