Sort with pictures (Excel 2003 SP3)

steveh
SilverLounger
Posts: 1952
Joined: 26 Jan 2010, 12:46
Location: Nr. Heathrow Airport

Sort with pictures (Excel 2003 SP3)

Post by steveh »

Morning all

In column B I have a list of Country names and in column C a small GIF of the country map, I would like to sort column B and also move the corrosponding map in C (which are wholly contained within the borders of the cell), is this possible to do?
Steve
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin

User avatar
StuartR
Administrator
Posts: 12617
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Sort with pictures (Excel 2003 SP3)

Post by StuartR »

Just make sure that each picture has the option to move but not resize with cell set in Format Picture.
You do not have the required permissions to view the files attached to this post.
StuartR


User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Sort with pictures (Excel 2003 SP3)

Post by HansV »

And if you have a column header such as "Country" at the top of column B, you should also have a column header (for example "Map") at the top of column C. Otherwise, Excel won't recognize the map pictures as part of the range to be sorted.
Best wishes,
Hans

steveh
SilverLounger
Posts: 1952
Joined: 26 Jan 2010, 12:46
Location: Nr. Heathrow Airport

Re: Sort with pictures (Excel 2003 SP3)

Post by steveh »

Thanks Stuart and Hans

I had already set all of the pictures to move but don't size but what I failed to do was to select (highlight) the cells with the graphics in them. I had wrongly assume that like a normal sort it would show me the message box about adjacent columns when I was sorting column B
Steve
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Sort with pictures (Excel 2003 SP3)

Post by HansV »

If you don't select the range to be sorted yourself, Excel determines the range based on the data, i.e. the cell values. If the picture column doesn't contain a column header, Excel doesn't see it as part of the range to be sorted because the cells with the pictures have a blank value.
Best wishes,
Hans