+ Reply to Thread
Results 1 to 8 of 8

How to use VBA Coding

  1. #1
    Forum Contributor Potholes's Avatar
    Join Date
    11-25-2011
    Location
    Brisbane
    MS-Off Ver
    Office 2021
    Posts
    774

    How to use VBA Coding

    Hi all

    I wish to learn more about VBA programming, if it is a simple answer.

    I have one question, What vba code would you use to to search for the contents of a cell.

    Thank you

    Peter
    One I have learnt over the last few months, " You are NEVER too old to learn ".
    Sometimes I forget to say " Thank You " for your assistance, so here I say " A BIG Thank You. "

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: How to use VBA Coding

    There's more than one way to find stuff using VBA. Two methods come immediately to mind:
    1) Using the Range.Find method: https://docs.microsoft.com/en-us/off...cel.Range.Find which is equivalent to using the "Find" command from the home tab.
    2) Calling Excel's lookup functions from VBA: https://docs.microsoft.com/en-us/pre...1(v=office.14).
    Which method to use depends on what you want to do once you find the information you are looking for.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor Potholes's Avatar
    Join Date
    11-25-2011
    Location
    Brisbane
    MS-Off Ver
    Office 2021
    Posts
    774

    Re: How to use VBA Coding

    mrshorty AKA ??

    Me Peter

    along the lines of If cell "X" = " " then Stop " Y " from displaying anything.

  4. #4
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: How to use VBA Coding

    you mean like ex:

    Please Login or Register  to view this content.
    Quote Originally Posted by Potholes View Post
    mrshorty AKA ??

    Me Peter

    along the lines of If cell "X" = " " then Stop " Y " from displaying anything.

  5. #5
    Forum Contributor Potholes's Avatar
    Join Date
    11-25-2011
    Location
    Brisbane
    MS-Off Ver
    Office 2021
    Posts
    774

    Re: How to use VBA Coding

    Good afternoon k1dr0ck

    I will try adding on top of of some existing code.

    Thanks

    Peter

  6. #6
    Forum Contributor Potholes's Avatar
    Join Date
    11-25-2011
    Location
    Brisbane
    MS-Off Ver
    Office 2021
    Posts
    774

    Re: How to use VBA Coding

    Greetings and sundry

    Owing to the Enduro Exec's moving the goal post, I have to rethink all of my project.

    I will sign off that the outstanding 2 current threads are Solved and re-apply for help later
    after I have had time to work out the logics.

    Peter

  7. #7
    Forum Contributor Potholes's Avatar
    Join Date
    11-25-2011
    Location
    Brisbane
    MS-Off Ver
    Office 2021
    Posts
    774

    Re: How to use VBA Coding

    Att Ali

    If I may would you mind commenting on what each line does in this coding
    so I can look at doing my attack at it please.

    Because this is one area I have to manipulate.

    Please Login or Register  to view this content.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,728

    Re: How to use VBA Coding

    You seem to think that I am the fount of all knowledge, which I suppose is flattering. I did not provide the code, so the caveat is that I may have interpreted it incorrectly, however I'll have a go:

    Please Login or Register  to view this content.
    Have you started to collate a notebook of code snippets with reminders about what they do? If not, then you are not really getting the best out of the help offered here, and will end up coming back and asking the same questions over and over again, which might aggravate (some of) your helpers.
    Last edited by AliGW; 07-25-2019 at 02:20 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] In need of help regarding combo box coding and button coding (Access form project)
    By mailblade in forum Access Tables & Databases
    Replies: 2
    Last Post: 01-09-2016, 01:34 AM
  2. macro coding help (i have no background in coding)
    By notgoodenough in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2014, 10:22 PM
  3. [SOLVED] Vb macro coding for transpose - complete coding?
    By Dharani Suresh in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-02-2013, 11:16 PM
  4. [SOLVED] Vb macro coding for transpose - complete coding?
    By Dharani Suresh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-02-2013, 05:04 AM
  5. [SOLVED] CheckBox coding to work with ComboBox coding
    By JimExcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2013, 12:23 PM
  6. Coding and Reverse Coding a Questionnaire
    By lorr3 in forum Excel General
    Replies: 2
    Last Post: 11-18-2012, 06:43 PM
  7. Implant macro coding into ASP coding
    By Sam yong in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-15-2005, 06:05 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