If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Lower size of image

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-16-07, 19:59
Jay59 Jay59 is offline
Registered User
 
Join Date: Sep 2006
Posts: 162
Lower size of image

I have a code that inserts a picture into a comment as the background. Is it possible to lower the image size by degrading the quality of th picture before inserting it.

This is the code I'm using.

PHP Code:
Sub Macro()

Dim rng As Range
Dim shp 
As Comment


Set rng 
ActiveCell

If ActiveCell.Value "Click to add pic" Then

Dim fn
fn 
Application.GetOpenFilename
If fn False Then
Else
Set shp rng.AddComment("")
shp.Shape.Fill.UserPicture fn
shp
.Shape.Height 322
shp
.Shape.Width 465
End 
If
ActiveCell "QC Pic"

Else
End If

End Sub 
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On