+ Reply to Thread
Results 1 to 3 of 3

Can you make a Macro to Format Pictures to change brightness and contrast?

  1. #1
    Registered User
    Join Date
    04-08-2014
    Location
    Athens, OH
    MS-Off Ver
    Excel 365
    Posts
    2

    Can you make a Macro to Format Pictures to change brightness and contrast?

    I am making a board game. I have hundreds of pictures in excel. I need to format the pictures for brightness and contrast. I would like a way to do that in a vba macro. How can it be done? I tried using the macro record tool but nothing gets recorded except for the selection of the pictures. Please help. See below


    '
    ' formatpicture Macro
    '
    ' Keyboard Shortcut: Ctrl+j
    '
    ActiveSheet.Shapes.Range(Array("Group 307")).Select
    ActiveSheet.Shapes.Range(Array("Picture 308")).Select
    ActiveSheet.Shapes.Range(Array("Group 304")).Select
    ActiveSheet.Shapes.Range(Array("Picture 305")).Select
    ActiveSheet.Shapes.Range(Array("Picture 194")).Select
    ActiveSheet.Shapes.Range(Array("Picture 194")).Select
    ActiveSheet.Shapes.Range(Array("Picture 194")).Select
    ActiveSheet.Shapes.Range(Array("Picture 194")).Select
    ActiveSheet.Shapes.Range(Array("Picture 194")).Select
    ActiveSheet.Shapes.Range(Array("Picture 194")).Select
    ActiveSheet.Shapes.Range(Array("Picture 194")).Select
    ActiveSheet.Shapes.Range(Array("Picture 194")).Select
    ActiveSheet.Shapes.Range(Array("Picture 340")).Select
    ActiveSheet.Shapes.Range(Array("Picture 194")).Select
    ActiveSheet.Shapes.Range(Array("Picture 355")).Select
    ActiveSheet.Shapes.Range(Array("TextBox 306")).Select
    ActiveSheet.Shapes.Range(Array("TextBox 293")).Select
    ActiveSheet.Shapes.Range(Array("Picture 292")).Select
    ActiveSheet.Shapes.Range(Array("Picture 194")).Select
    ActiveSheet.Shapes.Range(Array("Picture 194")).Select
    ActiveWorkbook.Save
    End Sub

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Can you make a Macro to Format Pictures to change brightness and contrast?

    This will loop through all the pictures on a sheet and set their brightness and contrasts percentages.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    04-08-2014
    Location
    Athens, OH
    MS-Off Ver
    Excel 365
    Posts
    2

    Re: Can you make a Macro to Format Pictures to change brightness and contrast?

    Thanks, works great!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Change cell format to make Sum function possible
    By ExcelBal in forum Excel General
    Replies: 4
    Last Post: 02-22-2013, 04:19 PM
  2. Project management and pictures, basically make a day planner with pictures
    By Axe Doctor in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-10-2012, 12:58 PM
  3. how do i change or make this macro??? pictures and code included
    By dispelthemyth in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2006, 10:00 AM
  4. Make Change Case in Excel a format rather than formula
    By Kevin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2005, 05:06 PM

Tags for this Thread

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