Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Show a range in a shape/picture object

I know I have done this before, but I cant remember how I got there...

I have a range of cells that need to be shown below another range of cells.
The Range of cells that will be shown in the shape/pic have rows and columns
that are of a different size than the ones that it will be placed on. This
is so that I can print one page landscape showing the main range and then 3
smaller ranges below.

The alternate range is diagonally down to the right of the main range so the
rows and columns can be sized to properly display the headings and allow the
correct width to show the data.

How do I create the shape/picture that refers to the alternate range of cells?
I.E. the main range is A4:O18 and over the top of A20:O26 I want to have
Q20:AD23 showing; this way the print range can be A4:O26 to show 1 page
properly formatted. The shape size will have to be tweaked to prevent any
odd stretching of the image.
--
Regards,
John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Show a range in a shape/picture object

Sub test2()
Dim pic As Picture

Range("Q20:AD23").Copy

Set pic = ActiveSheet.Pictures.Paste(Link:=True)
With pic
.Left = Range("A20").Left ' or simply 0 if Col-A
.Top = Range("A20").Top
.ShapeRange.Fill.Visible = msoTrue
End With

End Sub

and over the top of A20:O26 I want to have
Q20:AD23 showing;


Are you sure you don't mean "over A20:N23", assuming all same row/col sizes.

Regards,
Peter T

"John Keith" wrote in message
...
I know I have done this before, but I cant remember how I got there...

I have a range of cells that need to be shown below another range of
cells.
The Range of cells that will be shown in the shape/pic have rows and
columns
that are of a different size than the ones that it will be placed on.
This
is so that I can print one page landscape showing the main range and then
3
smaller ranges below.

The alternate range is diagonally down to the right of the main range so
the
rows and columns can be sized to properly display the headings and allow
the
correct width to show the data.

How do I create the shape/picture that refers to the alternate range of
cells?
I.E. the main range is A4:O18 and over the top of A20:O26 I want to have
Q20:AD23 showing; this way the print range can be A4:O26 to show 1 page
properly formatted. The shape size will have to be tweaked to prevent any
odd stretching of the image.
--
Regards,
John



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default Show a range in a shape/picture object

I Remembered!

Insert a picture from file.. just pick any old bmp. Then select the picture
and in the formula bar, key in the reference =O18:AD22 Then play with the
sizing to make the zoom fit the data.

--
Regards,
John


"John Keith" wrote:

I know I have done this before, but I cant remember how I got there...

I have a range of cells that need to be shown below another range of cells.
The Range of cells that will be shown in the shape/pic have rows and columns
that are of a different size than the ones that it will be placed on. This
is so that I can print one page landscape showing the main range and then 3
smaller ranges below.

The alternate range is diagonally down to the right of the main range so the
rows and columns can be sized to properly display the headings and allow the
correct width to show the data.

How do I create the shape/picture that refers to the alternate range of cells?
I.E. the main range is A4:O18 and over the top of A20:O26 I want to have
Q20:AD23 showing; this way the print range can be A4:O26 to show 1 page
properly formatted. The shape size will have to be tweaked to prevent any
odd stretching of the image.
--
Regards,
John

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default Show a range in a shape/picture object

This is easier:

1. copy the range you need to show as a picture
2. select where you want to pasteit
3. hold down shift and select Edit Paste picture link
4. resize and position...

Tim


"John Keith" wrote in message
...
I Remembered!

Insert a picture from file.. just pick any old bmp. Then select the
picture
and in the formula bar, key in the reference =O18:AD22 Then play with
the
sizing to make the zoom fit the data.

--
Regards,
John


"John Keith" wrote:

I know I have done this before, but I cant remember how I got there...

I have a range of cells that need to be shown below another range of
cells.
The Range of cells that will be shown in the shape/pic have rows and
columns
that are of a different size than the ones that it will be placed on.
This
is so that I can print one page landscape showing the main range and then
3
smaller ranges below.

The alternate range is diagonally down to the right of the main range so
the
rows and columns can be sized to properly display the headings and allow
the
correct width to show the data.

How do I create the shape/picture that refers to the alternate range of
cells?
I.E. the main range is A4:O18 and over the top of A20:O26 I want to have
Q20:AD23 showing; this way the print range can be A4:O26 to show 1 page
properly formatted. The shape size will have to be tweaked to prevent
any
odd stretching of the image.
--
Regards,
John



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default Show a range in a shape/picture object

There's also a toolbar button for this, but you have to add it to the tool
via right-click customize...

Commands tab tools camera

Tim

"John Keith" wrote in message
...
I know I have done this before, but I cant remember how I got there...

I have a range of cells that need to be shown below another range of
cells.
The Range of cells that will be shown in the shape/pic have rows and
columns
that are of a different size than the ones that it will be placed on.
This
is so that I can print one page landscape showing the main range and then
3
smaller ranges below.

The alternate range is diagonally down to the right of the main range so
the
rows and columns can be sized to properly display the headings and allow
the
correct width to show the data.

How do I create the shape/picture that refers to the alternate range of
cells?
I.E. the main range is A4:O18 and over the top of A20:O26 I want to have
Q20:AD23 showing; this way the print range can be A4:O26 to show 1 page
properly formatted. The shape size will have to be tweaked to prevent any
odd stretching of the image.
--
Regards,
John





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
Find Range Location of a Shape Object ExcelMonkey Excel Programming 1 December 9th 08 07:47 PM
Possible to select a range of cells from a Shape Object Gummy Excel Programming 1 May 11th 06 12:06 AM
Align a picture/shape in the middle of a range("A1:H10") Andoni[_21_] Excel Programming 1 August 27th 04 07:44 AM
align a picture/shape in a Range! Andoni[_18_] Excel Programming 1 August 22nd 04 06:11 PM
I know selected picture is a shape but typename says is picture Carlos Lozano Excel Programming 3 July 24th 04 05:44 PM


All times are GMT +1. The time now is 07:17 PM.

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"