Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 104
Default Locking picture in cell

I am trying to create an inventory in Excel using a small picture of the item
in the first column and other columns have the create date, inventory number,
price, etc. When I sort all, I lose the positioning of the inventory picture
with the row. How do I lock the pic with the row?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Locking picture in cell

Size the object so it fits entirely within the cell boundaries.

Format all pictures to "move and size with cells".


Gord Dibben MS Excel MVP


On Tue, 1 Jan 2008 12:46:00 -0800, Cathy
wrote:

I am trying to create an inventory in Excel using a small picture of the item
in the first column and other columns have the create date, inventory number,
price, etc. When I sort all, I lose the positioning of the inventory picture
with the row. How do I lock the pic with the row?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 104
Default Locking picture in cell

OMG!! You are a genius! Some of my images were over the cell boundary lines
so when I experimented with the format picture, it still got displaced when I
sorted. I will make sure in the future to make the images smaller than the
cell. Is there a way to set that as the default for all images inserted in to
this document?

Thank you so very much!!

"Gord Dibben" wrote:

Size the object so it fits entirely within the cell boundaries.

Format all pictures to "move and size with cells".


Gord Dibben MS Excel MVP


On Tue, 1 Jan 2008 12:46:00 -0800, Cathy
wrote:

I am trying to create an inventory in Excel using a small picture of the item
in the first column and other columns have the create date, inventory number,
price, etc. When I sort all, I lose the positioning of the inventory picture
with the row. How do I lock the pic with the row?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Locking picture in cell

I can't think of code to write to default all inserted images to a particular
size. Too late at night for an old geezer.

I can supply a macro to resize all selected images to a certain size.
Experiment with the 12# and 24# to adjust height and width.

Placement of these images would be up to you.

Sub Reset_Shapes()
Dim shp As Shape
On Error GoTo whoops
For Each shp In ActiveSheet.Shapes
With Selection.ShapeRange
.LockAspectRatio = msoFalse
.Height = 12#
.Width = 24#
.Rotation = 0#
End With
Next shp
Exit Sub
whoops:
MsgBox "You have not selected any picture(s)"
End Sub


Gord

On Tue, 1 Jan 2008 19:40:00 -0800, Cathy
wrote:

OMG!! You are a genius! Some of my images were over the cell boundary lines
so when I experimented with the format picture, it still got displaced when I
sorted. I will make sure in the future to make the images smaller than the
cell. Is there a way to set that as the default for all images inserted in to
this document?

Thank you so very much!!

"Gord Dibben" wrote:

Size the object so it fits entirely within the cell boundaries.

Format all pictures to "move and size with cells".


Gord Dibben MS Excel MVP


On Tue, 1 Jan 2008 12:46:00 -0800, Cathy
wrote:

I am trying to create an inventory in Excel using a small picture of the item
in the first column and other columns have the create date, inventory number,
price, etc. When I sort all, I lose the positioning of the inventory picture
with the row. How do I lock the pic with the row?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Locking cell whatzzup Excel Discussion (Misc queries) 2 November 1st 07 08:16 PM
locking only one cell AJB Excel Discussion (Misc queries) 2 August 17th 07 09:40 AM
how do I insert picture into cell so vlookup can return picture? ah Excel Worksheet Functions 1 May 1st 07 04:38 AM
locking formula in cells in without locking whole sheet SuziQ Excel Discussion (Misc queries) 1 July 21st 06 03:58 PM
Locking a cell John Excel Worksheet Functions 1 December 17th 05 01:04 PM


All times are GMT +1. The time now is 09:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"