+ Reply to Thread
Results 1 to 5 of 5

Using InputBox to locate a row and cell number, then to insert a value with the location

  1. #1
    Registered User
    Join Date
    05-11-2013
    Location
    Durban, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    12

    Lightbulb Using InputBox to locate a row and cell number, then to insert a value with the location

    Hello there

    I am currently struggling with a script i am trying to create. I have account numbers that get paid each month, and i have created an input box where one can type in the account number, it will locate it and give you the row number, then another will ask you for the month, and give you the column number. Now that part is working perfectly, but i would like to add the next step where it uses the Row Number from the account number and the Column number from the Month, with the use of an input box, it would place the amount typed, within the range it generated. For example: Account number 7894561230 is located in row 67, and July is located in Column 3. Then the next input box should place the Amount in Column 3, Row 67.

    Please Login or Register  to view this content.
    Surfboard Out

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Using InputBox to locate a row and cell number, then to insert a value with the locati

    Not quite sure on how to fit in your code but I would do something like:
    Please Login or Register  to view this content.
    (Assuming your month/column headers are in rows 1

  3. #3
    Registered User
    Join Date
    05-11-2013
    Location
    Durban, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Using InputBox to locate a row and cell number, then to insert a value with the locati

    Eskom Payments Template2.xlsx Let me see if i can manipulate the code into my script, but my sheet looks like this:

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Using InputBox to locate a row and cell number, then to insert a value with the locati

    Had a look and was a bit more difficult getting it to work with your layouts/formats but I think this should do it:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-11-2013
    Location
    Durban, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Using InputBox to locate a row and cell number, then to insert a value with the locati

    Working perfectly, and much shorter then my script.. I dont know why i always intend to create such massive scripts when most of them can be shortened like above . Thank you for your time and help, much appreciated.

+ 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. How can I locate the MAX location?
    By rogerthatman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2012, 12:06 PM
  2. Insert a number from another location on the sheet
    By Mdavies_02 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-22-2012, 04:52 PM
  3. Locate person and hyperlink to location
    By krabople in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-19-2011, 05:21 AM
  4. Inputbox to pull cell location
    By stvgarner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-17-2006, 03:06 PM
  5. [SOLVED] locate picture location using macro
    By ME @ Home in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-19-2006, 03:30 PM

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