+ Reply to Thread
Results 1 to 2 of 2

VLookup in VBA, and All Borders

  1. #1
    Registered User
    Join Date
    03-01-2015
    Location
    Northants
    MS-Off Ver
    2007
    Posts
    15

    VLookup in VBA, and All Borders

    Hi, I am new to VBA and have a couple of urgent issues.

    I have a number of worksheets in a spreadsheet. Data from a report is loaded to worksheet 'data'. The number of rows can vary. The code below is what I have created (with a bit of help) to get the data into T2, and to put the information in the right place. It also calculates the total in column M.

    The major problem I have is that, starting with row 3, I want to look up the item number found in column 'E' and search worksheet 'Support'. The item number can be found somewhere in column 'A' in 'Support'. I need to bring the value in column 'B' in Support (that relates to that item number) and store it in column 'A' in worksheet 'T2'. I then want to repeat this process for every row in 'T2' up to and including the last row.

    I also need to be able to put 'all borders' around range A3:AI & 'lastrow'.

    I put this code together in the VBA for sheet 7, but I think this may be in the wrong place ('T2' is sheet8 and 'Support' is sheet10).

    Below is the code to date (it includes a lot of 'commented out' efforts. Any help would be truly appreciated.

    Regards

    --------------------------
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 03-01-2015 at 05:17 PM. Reason: Added Code Tags

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: VLookup in VBA, and All Borders

    Hello and welcome to the forum. Could you upload an example workbook which clearly demonstrates what you are trying to accomplish.

+ 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. [SOLVED] Auto change borders to thick borders
    By Pierce Quality in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-22-2013, 11:17 PM
  2. Replies: 3
    Last Post: 02-20-2012, 05:09 PM
  3. Add borders
    By nighttrainrex in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2010, 05:57 PM
  4. Excel 2007 : Borders
    By redroses15 in forum Excel General
    Replies: 3
    Last Post: 07-17-2010, 05:02 AM
  5. Borders Help
    By shortyboyblue in forum Excel General
    Replies: 2
    Last Post: 08-07-2009, 08:37 AM

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