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 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
-
Seeing BSOD’s on 24H2?
by
Susan Bradley
7 minutes ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
3 hours, 34 minutes ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
5 hours, 57 minutes ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
8 hours, 47 minutes ago -
0patch
by
WSjcgc50
5 hours, 15 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
2 hours, 9 minutes ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
11 hours, 47 minutes ago -
Problem opening image attachments
by
RobertG
13 hours, 21 minutes ago -
advice for setting up a new windows computer
by
routtco1001
1 day, 4 hours ago -
It’s Identity Theft Day!
by
Susan Bradley
8 hours, 23 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
1 day, 8 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
1 day, 9 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
1 day, 9 hours ago -
Firefox became sluggish
by
Rick Corbett
1 day, 6 hours ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
1 day, 13 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
1 day, 14 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
11 hours, 14 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
5 hours, 47 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
11 hours, 54 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
13 hours, 6 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
2 days, 4 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
1 day, 8 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
1 day, 18 hours ago -
23 and you
by
Max Stul Oppenheimer
2 days, 1 hour ago -
April’s deluge of patches
by
Susan Bradley
5 hours, 40 minutes ago -
Windows 11 Windows Updater question
by
Tex265
6 hours, 1 minute ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
3 days, 10 hours ago -
Registry Patches for Windows 10
by
Drcard:))
3 days, 15 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
2 days, 21 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
2 days, 7 hours 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.