Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Selection.ShapeRange.IncrementLeft error

Hello Sir/Madam,

I have created an excel app that inserts an .bmp image. I
would like to select it and shift it a little to the left
so that it aligns properly while viewing on screen and on
paper. Here is lies my problem - I am selecting the image
and then use Selection.ShapeRange.IncrementLeft #6. This
works the first time I run it but the second time I get
the following error -

run time error '438' - Object doesn't support this
property or method

Is there a possible workaround this??

Any help on this would be great.

Thanks.

Anil
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Selection.ShapeRange.IncrementLeft error

Hi Anil,

If you know or can determine the specific position where you want to be
located, I'd suggest setting the Top and Left properties of the Shape object
directly. For example:

With Sheet1.Shapes(1)
.Top = 10
.Left = 10
End With

You can also increment the position of the Shape using these properties in
the following manner:

With Sheet1.Shapes(1)
.Top = .Top + 10
.Left = .Left + 10
End With

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *


"Anil Khemchandani" wrote in message
...
Hello Sir/Madam,

I have created an excel app that inserts an .bmp image. I
would like to select it and shift it a little to the left
so that it aligns properly while viewing on screen and on
paper. Here is lies my problem - I am selecting the image
and then use Selection.ShapeRange.IncrementLeft #6. This
works the first time I run it but the second time I get
the following error -

run time error '438' - Object doesn't support this
property or method

Is there a possible workaround this??

Any help on this would be great.

Thanks.

Anil



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
Hyperlink selection generates error message cwpauline Links and Linking in Excel 2 October 18th 08 04:04 AM
Cannot Group that Selection error in PivotTable CherylS Excel Discussion (Misc queries) 1 June 16th 08 10:40 PM
Getting error "selection is too large" when copying data Tootie Excel Discussion (Misc queries) 1 October 6th 05 12:19 AM
Getting error "selection is too large" when copying data Tootie Excel Discussion (Misc queries) 0 October 5th 05 08:42 PM
Selection.ShapeRange.IncrementLeft error Anil Khemchandani Excel Programming 0 December 9th 03 07:30 PM


All times are GMT +1. The time now is 04:47 PM.

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

About Us

"It's about Microsoft Excel"