+ Reply to Thread
Results 1 to 2 of 2

Adjust code for searching up to clear cell

  1. #1
    Registered User
    Join Date
    09-23-2010
    Location
    Killeen, TX
    MS-Off Ver
    Excel 2007
    Posts
    6

    Adjust code for searching up to clear cell

    I am writing a program and have the following code:

    Please Login or Register  to view this content.
    This works perfect but I have been trying to modify the code and have had issues. I have changed the A in range hoping it would search a different column to paste info too but it isnt working.

    Also, I have a combobox and do a VLookup based on what is in that box. I was going to use a if then statement so I wouldnt get a error if the field is blank. If is field is blank what is its value?

    One last question. If I wanted to use the copy and paste code before. Is there a short cut to pasting to a empty page or am I going to have to use if then statements?

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Adjust code for searching up to clear cell

    Hi pktrusty

    the code looks for the last row in column A then offsets by (row,Column)

    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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