pictures into excel

mrExl

New Member
Joined
Oct 19, 2024
Messages
3
Office Version
  1. 365
hi,
I used excel 2016 or office 365. I use VBA insert picture. Need to reduce the size like 60x60 times or so.
Does not work well with a bit dark tif files. I tried bright + contrast in VBA and it helps but not quite visible.
What is the best code to insert tif image with that kind of size reduction in VBA or Vbscript?.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
what is the code you have used so far, to import the picture, to resize it and to change the brightness?
 
Upvote 0
Why not manipulate the image prior to inserting into Excel ?
 
Upvote 0
How do i manipulate the image?. it is 16 bit. I could convert to jpg?.

my vbscript does not recognize msoFalse.

[B]Set pic = ActiveSheet.Pictures.Insert(tifPicture)[/B]
set picrange = ws.Range(A1:C10)

With pic
.Height = picrange.Height
.Width = picrange.Width
.Top = picrange.Top
.Left = picrange.Left

[B] End With[/B]
 
Upvote 0
You would need to utilize an image software package. Surprisingly MS Paint may have just enough options to accomplish your goal.
 
Upvote 0
could you provide some detail. what kindsof image processes to apply in paint??.
 
Upvote 0
I misspoke regarding MS Paint. Forget that as an option.

If you go to the MS Store (should be an icon on your Task Bar at the bottom of your monitor) and search for 'IMAGE EDITOR". There
are many FREE image editing programs that can be downloaded. Look them over and select one. I enjoy editing images for my
Excel projects ... hopefully you will too.
 
Upvote 0
I use the free and highly regarded IrfanView.
If you do go that way, install it with all the bells and whistles, aka plug-ins, as recommended at the IrfanView site and play around with it.
If you're not happy with it, all you have to do is uninstall it.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top