+ Reply to Thread
Results 1 to 4 of 4

I need VBA explanation on this code please help me!!!

  1. #1
    Forum Contributor
    Join Date
    03-28-2013
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    226

    I need VBA explanation on this code please help me!!!

    Please Login or Register  to view this content.
    Can anybody Explain me this below code what id does exactly?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: I need VBA explanation on this code please help me!!!

    The code sets To_Be_Compared to a range starting from the first row of the column the user entered and ending wherever the current Selection is.
    Last edited by Norie; 08-09-2013 at 10:27 AM.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    07-24-2012
    Location
    Denver, CO
    MS-Off Ver
    365
    Posts
    230

    Re: I need VBA explanation on this code please help me!!!

    "To_Be_Compared" looks like a range. So, whatever letter you place in the input box for str1 will be stored. Let's say you decided to enter "J". Whichever cell you currently have selected will then be used. Let's say you have the following cell selected: "Q34". Then, "Set" makes "TBC" equal to the range "J1:Q34" Does that help?
    ~~LaffyAffy13~~

    If I have helped you solve your problem, please be sure to click at the bottom left of my post.

    Thanks.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: I need VBA explanation on this code please help me!!!

    If that takes answers your question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Looking for some explanation on a few lines of code
    By Jrub in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2012, 03:48 PM
  2. [SOLVED] Explanation line in code
    By thair in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-18-2012, 10:43 AM
  3. [SOLVED] Code explanation please
    By Geordie in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-15-2012, 08:12 AM
  4. explanation of code
    By leanne2011 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2011, 06:50 PM
  5. Code explanation
    By bajdr47 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-06-2011, 12:30 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