LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 533
Default Camera Tool

Sorry my point wasn't clear. I don't recall saying anything about a syntax
error. Your problem is that you are hard wiring coordinates on the
assumption that they hold across machines. You have to determine them
dynamically. My code (I cannot tell if you tried it) dynamically determines
the size (as best I can tell what you're doing) but not the location.
Something like this: 201.75, 192.75, 375, 328.5 is a nonstarter. Use
Range("B10").Left, Range("B10").Top, etc.

--
Jim
"Christina" wrote in message
...
| Hi Jim,
|
| Hi Jim,
| The problem is not the syntax error but it is is possible from the setting
| of the printer on each computer. On the computer that I have problem the
| picture selected from the Camera is no more proportion with the page. It
is
| bigger and not at the right position. However, on all of my others
computers,
| the picture is at the right position.
| Christine
|
| "Jim Rech" wrote:
|
| If I follow you correctly I think you should do something like this:
|
| Selection.Height = Range("A4:H15").Height
| Selection.Width = Range("A4:H15").Width
|
| --
| Jim
| "Christina" wrote in message
| ...
| | Hello All,
| |
| | I Have a problem of using Excel Camera command in my macro. Here is my
| codes:
| |
| | ActiveSheet.Range("A4:H15").Select
| | Selection.Copy
| | ActiveSheet.Pictures.Add(201.75, 192.75, 375, 328.5).Select
| | Selection.Height = 294
| | Selection.Width = 410.25
| |
| | It works well in most of my computer. However, I have a problem in one
| | computer. The content of the range A4:H15 that I size it to fit with
the
| | width 410.25 and the height = 294 is larger than the normale and it
also
| move
| | a little to the left. I think the problem is from the printer
| configuration
| | but I do not know which part. Any clue will be very appreciated.
| |
| | Christine
|
|
|


 
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
Camera tool & Excel 2007 B Excel Discussion (Misc queries) 0 January 31st 08 11:08 PM
Using Camera Tool Mifty Charts and Charting in Excel 4 December 12th 07 12:17 PM
Excel Camera Tool Automated Placement Randy Excel Programming 0 May 1st 07 03:31 PM
Excel's camera tool Camera Shy Excel Discussion (Misc queries) 4 March 1st 07 02:03 AM
Camera tool is slowing macro Yokie Cahyadi Excel Programming 6 August 11th 06 04:10 PM


All times are GMT +1. The time now is 12:07 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"