Consulting

Results 1 to 3 of 3

Thread: How can I make CopyPicture show the selected cell

  1. #1

    How can I make CopyPicture show the selected cell

    I have one cell selected in the middle of a named rectangular range. How can I do a Copy Picture of the range that shows the selected state of the cell?

  2. #2
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location
    something like (assuming the range is selected)

    [vba]Selection.CopyPicture Appearance:=xlScreen, Format:=xlPicture[/vba]the question is what are you going to do next? Stan

  3. #3
    Thanks, Stan. I have no problem getting the Picture, but the Picture is not showing the selected cell. As for "what are you going to do next", I'm pasting the Picture into a Frame on a Userform, but again, that's not the problem.

    I just want the selected cell to appear "selected" in the Picture. I don't select the range before taking the Picture but just reference it by name. Maybe Excel makes a hidden selection of the range before it takes the Picture which would remove the selection from my cell? Anyway, the cell is still selected on the sheet after the Picture is made but it's just not shown.

Posting Permissions

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