I’d really like to be able to hide graphics (pasted screen shots) in comments
so the user has to view the comment to see the screen shot, but you can’t
paste graphics into comments. Is there a way to hide these graphics so
the user can click something to reveal the images?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Hide pasted graphics (2002)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Hide pasted graphics (2002)
- This topic has 15 replies, 6 voices, and was last updated 20 years, 1 month ago.
AuthorTopicWSKevin
AskWoody LoungerMarch 7, 2003 at 7:56 pm #384458Viewing 1 reply threadAuthorReplies-
WSsdckapr
AskWoody LoungerMarch 7, 2003 at 8:26 pm #659645Here is a thought (there are other ways)
Could you put the graphics in a Userform?Then have a button on the sheet that puts a particular picture in the userform based on the activecell and shows the form?
You could also add the comments to the form.
You could get fancy and ONLY have the button visible/active when the active cell was particular cells (via worksheet selection_change event) or the selection change could SHOW the picture automatically if desired.
Steve
-
WSKevin
AskWoody Lounger -
WSsdckapr
AskWoody LoungerMarch 8, 2003 at 3:43 am #659742You could write code (or get our help) to have them copy the screenshot and then by pushing a button it would paste, resize, place the picture, hide it and do whatever else you wanted. Easy on the user.
It sounds like you are looking at a 2 step problem:
1)User has to copy, place, screen shot
2) then another user will do something to view the screenshotsCould you give some details of what you would like the code to do and how it would be setup? Both parts could be automated.
Steve
-
-
-
WSAndrew Cronnolly
AskWoody LoungerMarch 7, 2003 at 9:05 pm #659660Kevin,
Pictures and Graphics are part of the Shapes collection of a Worksheet. If you have an image called Picture1, then the following code should make it hidden :
ActiveSheet.Shapes(“Picture1”).Visible = False
Attached find a sample with a command button to toggle Show/Hide.
Right click on the Sheet tab and select View Code.
Andrew
-
WSKevin
AskWoody LoungerMarch 7, 2003 at 10:20 pm #659676Andrew,
That is, of course, very cool. But I’m trying to do this at the
“user” level. IOW, no code, if possible. The user needs to be able
to do a Alt-PrintScr, then paste the screen shot into the
worksheet, then hide the pic.Humm. I could put a button on the sheet like you did, and have the
code behind it set all the pics in, say, column D or whatever go invisible.That might work…But the user would have to make sure the pic got
pasted in column D. Are pics “anchored” in cells or is there a
“drawing” layer like Word? -
WSAlanMiller
AskWoody LoungerMarch 8, 2003 at 11:56 am #659767Hi Kevin
I’d be most interested to know how to place graphics within cells too. My limited understanding was that they belonged to a layer, as you describe it, rather than being able to be “anchored” inside cells. I had a problem a while back, where I wanted the .JPG graphic corresponding to a path/file reference, to be displayed in the cell containing said reference.
Alan
-
WSjstevens
AskWoody Lounger -
WSAlanMiller
AskWoody LoungerMarch 9, 2003 at 2:12 am #659849Thanks John, and to Steve for the extra information. I’ll certainly give the code a shot. To get specific about the particular project I have in mind, the sheets contain records from a product catalogue with one product per row. One of the columns contains a file reference to a folder that “lives” directly below the .xls. A typical entry might be “pk104.jpg” for product pk104. However, this entry might be the same for the next half a dozen rows – pk104s, pk104t etc. It would therefore be desirable for the graphic to “span” the rows it applies to, but be “attached” to the pk104 cell. Also, all the graphics would appear in the one column, so the column width will be set to the maximum graphic width on that sheet (easy enough).
The whole thing was derived from a Word doc, where merging cells in a table was used to achieve this “row spanning” effect. At the moment, I have simply used a toolbar button that displays the graphic of the active row in a modal self-sizing popup, but this idea is not conducive to printing the catalogue with graphics, the way it could be done in Word. There are also different issues for onscreen and printed views involving multiline cell entries, but I have addressed (most of) these with appropriate code and commandbar buttons, to produce various “views”.
Any further suggestions for this configuration most welcome, of course.
Alan
-
WSsdckapr
AskWoody LoungerMarch 9, 2003 at 3:31 am #659854 -
WSAlanMiller
AskWoody LoungerMarch 9, 2003 at 3:43 am #659855I toyed with hyperlinks, but users found it distracting jumping to & from IE/Excel. They liked the way the little popups worked though. The real problem I had with this project though, relates to the printable version, rather than the onscreen presentation & navigation. That is, getting the pictures “physically” into cells, with the appropriate cell “spanning”, and the ability to print the whole show properly.
Alan
-
WSsdckapr
AskWoody LoungerMarch 9, 2003 at 2:30 pm #659878Some thoughts:
I would think about 2 versions. A “printable” one with all the pictures in the right locations and the “viewable” one. It is tough to have something that meets both well.One should be the master if you are going to edit directly onto it and the other should be based on the “master” so when the master is updated the other is also updated.
Or you just work with the viewable one (with popups) and have a macro to “create the printable” whenever you want to print it.
I have heard that a “pdf” vesion can still maintain some excel features, though I have never used this.
Steve
-
WSAlanMiller
AskWoody LoungerMarch 10, 2003 at 1:29 pm #659975Interesting thoughts. I’ve thought about lots of alternatives myself during this ongoing project. One was to try to “export” the spreadsheets to a Word doc, where a table structure might provide better formatting options. Another was to use HTML with image tags around the links to the graphics. There are so many issues here, not helped by the client adding to the project all the time, and being blissfully oblivious to the difficulties involved, like why you can’t manage to print 60cm of columns across an A4 page
Certainly the idea of a master is an important one, with “views” derived from only that, via references/links. The printable version, if it ever comes off, would be exactly that, with no need for any “Excel features” save for the rows & columns.
Thanks for the input, and for anything else you might suggest.
Alan
-
WSKevin
AskWoody Lounger
-
-
WSsdckapr
AskWoody LoungerMarch 8, 2003 at 5:06 pm #659800If you make the cell wide enough and tall enough to complete enclose the picture, you can format the picture to move and size with the cell and it will stay with the cell thru most operations (you can even sort with it this way)
This would be equivalent to having a “graphic” as a field in a database.
It gets more squirrely if the graphic goes across rows and columns. If you insert/delete col or rows the graphic will change size, but moving individual cells does not change the size, but moving an entire region of cells enclosing the picture will move the picture.
Steve
-
WSellobie
AskWoody LoungerApril 11, 2005 at 5:38 pm #940289So, not exactly timely, but something I learned today and definitely good to know – if you do want to sort and keep the graphics with the originating cells, all the cells in the spreadsheet must be tall enough to hold the tallest cell (i.e.; if you have one cell that needs to be 75 pts. tall to enclose the graphic, you need to make ALL the cells 75 pts. tall) or else you run the risk of having some graphics becoming disassociated with their originating cell text.
-
-
-
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
InfoStealer Malware Data Breach Exposed 184 Million Logins and Passwords
by
Alex5723
3 hours, 29 minutes ago -
How well does your browser block trackers?
by
n0ads
14 minutes ago -
You can’t handle me
by
Susan Bradley
6 minutes ago -
Chrome Can Now Change Your Weak Passwords for You
by
Alex5723
1 hour, 45 minutes ago -
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
14 hours, 51 minutes ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
2 hours, 24 minutes ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
15 hours, 15 minutes ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
15 hours, 20 minutes ago -
Lumma malware takedown
by
EyesOnWindows
3 hours, 36 minutes ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
1 day ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
1 day ago -
Meet Gemini in Chrome
by
Alex5723
1 day, 4 hours ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
1 day, 4 hours ago -
Trump signs Take It Down Act
by
Alex5723
1 day, 12 hours ago -
Do you have a maintenance window?
by
Susan Bradley
50 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
14 hours, 27 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
1 day, 15 hours ago -
Help with WD usb driver on Windows 11
by
Tex265
4 hours, 26 minutes ago -
hibernate activation
by
e_belmont
2 days ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
2 days, 4 hours ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
2 days, 7 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
2 days, 7 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
1 day, 3 hours ago -
Out of band for Windows 10
by
Susan Bradley
2 days, 12 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
2 days, 19 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
3 days, 2 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
22 hours, 28 minutes ago -
Auto Time Zone Adjustment
by
wadeer
3 days, 7 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
3 days, 4 hours ago -
Manage your browsing experience with Edge
by
Mary Branscombe
4 hours, 44 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.