+ Reply to Thread
Results 1 to 5 of 5

VBA Offset

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    41

    VBA Offset

    Morning all,

    I am looking for a little help with my VBA code. As my knowledge of this is pretty basic, I am unable to make the tweak to this that I require.

    The code below allows me to insert pictures into an Excel spreadsheet. The first part of the code enters pictures into column AA, and the second into column AB. In each column, there will be multiple images that will insert in rows 2,3,4,5,6 etc.

    What I need to do is get the code to skip 6 rows for each image that it needs to enter (i.e. AA2, AA8, AA14, AA20 etc.)

    Please Login or Register  to view this content.
    I would imagine that this would be a relatively simple thing to do if you know VBA. Any help would be greatly appreciated.

    TM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: VBA Offset

    Maybe this for the first bit - have added the variable r - so perhaps you can adapt for the second bit?
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-07-2014
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    41

    Re: VBA Offset

    Brilliant Stephen! This does exactly what I wanted it to do!!

    Would you be able to show me the VBA code to convert an individual workbook to pdf and then open up a new email within Outlook and attach this pdf document?

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: VBA Offset

    Glad to hear it. That sounds like a separate question so I suggest you start a new thread, and link to this if necessary.

  5. #5
    Registered User
    Join Date
    01-07-2014
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    41

    Re: VBA Offset

    Fair enough, thanks for your help!

+ 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. Select offset variable offset cells
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2014, 06:12 AM
  2. Replies: 3
    Last Post: 06-01-2014, 10:26 AM
  3. function similar to offset to offset the offset
    By Jerseynjphillypa in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-03-2012, 03:07 PM
  4. Reformatting - insert formula with offset, then offset to next cell
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2011, 05:41 AM
  5. Replies: 7
    Last Post: 11-04-2008, 06:41 AM

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