+ Reply to Thread
Results 1 to 6 of 6

VBA Debugging Help

  1. #1
    Registered User
    Join Date
    07-23-2018
    Location
    Rochester, New York
    MS-Off Ver
    16
    Posts
    15

    VBA Debugging Help

    Hey guys,
    So I made this macro that will prompt the user for an item number input, then a unit price input and then it will find the item number in column A and go over to column C and input the unit price (based on user input). My code keeps getting an error at the first if statement and I don't know why, any help is appreciated! (I'm new to VBA, so bear with me lol).

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,961

    Re: VBA Debugging Help

    Please Login or Register  to view this content.
    Last edited by Sintek; 07-23-2018 at 03:02 PM.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VBA Debugging Help

    Maybe:

    Please Login or Register  to view this content.
    etc.

    * but don't change the SearchRng part
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,961

    Re: VBA Debugging Help

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-23-2018
    Location
    Rochester, New York
    MS-Off Ver
    16
    Posts
    15

    Re: VBA Debugging Help

    Quote Originally Posted by sintek View Post
    Please Login or Register  to view this content.
    This worked! Thank you!

  6. #6
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,961

    Re: VBA Debugging Help

    Glad you got it sorted...
    Have a look at your variable declarations though...as per xladept suggestion...
    Thanks for rep +

    Pls remember to mark thread as solved...
    Last edited by Sintek; 07-24-2018 at 02:22 AM.

+ 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. debugging help
    By Ayoub99k in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 10-18-2015, 09:14 AM
  2. Help Debugging
    By kellynicolebarrett in forum Excel General
    Replies: 1
    Last Post: 04-17-2014, 07:59 AM
  3. Debugging Help
    By AlexanderBB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2012, 08:30 PM
  4. Debugging VBA
    By shg in forum Tips and Tutorials
    Replies: 1
    Last Post: 06-30-2010, 12:37 AM
  5. help with debugging
    By akhlaq768 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2008, 05:15 AM
  6. [SOLVED] Need some debugging help, please
    By slingsh0t@hotmail.com in forum Excel General
    Replies: 2
    Last Post: 08-08-2006, 01:35 PM
  7. [SOLVED] Debugging
    By Paul W Smith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2006, 12:34 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