Results 1 to 5 of 5

sizing picture same picture in multiple sheets macro clean up

Threaded View

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    46

    sizing picture same picture in multiple sheets macro clean up

    Hey all,

    I have a macro to insert my company logo to multiple workbooks and sheets inside those workbooks,
    however, I need to resize the image and the cell height only for a1.
    Automation for the win.

    Below is my code:
    Sub InsertLogo2()
    Dim strPath As String
    Dim shtSheet As Worksheet
    
    strPath = "h:\sas\irepic2.tif"
    
    For Each shtSheet In Worksheets
    shtSheet.Activate
    Range("A1").Select
    ActiveSheet.Pictures.Insert (strPath)
    Next shtSheet
    Set shtSheet = Nothing
    End Sub
    Thanks Martinez77
    Last edited by Leith Ross; 08-09-2013 at 11:42 AM. Reason: Added Cpode Tags

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VBA Code/Macro for Sizing A Picture to a Range of Cells
    By Swierchris in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-21-2015, 12:40 AM
  2. [SOLVED] macro: insert picture based on workbook location, not picture root path.
    By NicksDad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2012, 07:47 AM
  3. Insertion of picture by xls formula/ naming the picture with multiple selection crite
    By luckiest man in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2011, 12:11 AM
  4. Sizing a picture based on a value.
    By Neil07979 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-02-2008, 03:48 AM
  5. Excel Picture Sizing
    By Cheeky Monkey in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 06-13-2005, 07:05 PM

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