+ Reply to Thread
Results 1 to 3 of 3

Don't Move or size with cells

Hybrid View

  1. #1
    Registered User
    Join Date
    08-28-2008
    Location
    bournemouth
    MS-Off Ver
    Office 2007
    Posts
    42

    Post Don't Move or size with cells

    Have written a code to produce a spreadsheet in excel from AutoCAD.

    Within that code I have inserted an image.

    Is there a way in VBA to set the properties of this image so that it is set to "Don't Move or size with cells".

    Any help would be greatly appreciated.

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Don't Move or size with cells

    How's this do for you?

    Sub Streng()
    
    ActiveSheet.Shapes("Picture 2").Placement = xlFreeFloating
    
    End Sub
    Obviously change "Picture 2" to the name of your picture.
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Registered User
    Join Date
    08-28-2008
    Location
    bournemouth
    MS-Off Ver
    Office 2007
    Posts
    42

    Re: Don't Move or size with cells

    Thanks for your help that worked a treat

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1