+ Reply to Thread
Results 1 to 11 of 11

VBA Macro to Input Data in a cell

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    Lagos
    MS-Off Ver
    Excel 2007
    Posts
    67

    VBA Macro to Input Data in a cell

    Hi,

    Assistance required.

    I have a very simple formula to locate Cell Address "=ADDRESS(1,MATCH($A$3,$3:$3,0),3)" a combination of two functions, Address and Match.

    I want to write a VBA code in such a way that the Row number (1 in formula above) would be from an input box, while the rest of the formula would be constant as above. A second input from an input box would then be pasted on the resulting cell address gotten from formula above.

    Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: VBA Macro to Input Data in a cell

    Something like this?
    Please Login or Register  to view this content.
    Last edited by HSV; 01-21-2013 at 06:12 PM. Reason: typo
    Kind regards, Harry.

  3. #3
    Registered User
    Join Date
    02-21-2012
    Location
    Lagos
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: VBA Macro to Input Data in a cell

    Hi Harry,

    Thanks so much for the code. I was able to put in my values in the code you provided but had an issue after putting in the second value to be displayed in the cell. I get the error message "Error Range of Message Global Failed"

    Please see code below.

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 01-21-2013 at 07:08 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: VBA Macro to Input Data in a cell

    Hello akynyemi,

    Could you upload your file by what you are doing?
    Thanks.

  5. #5
    Registered User
    Join Date
    02-21-2012
    Location
    Lagos
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: VBA Macro to Input Data in a cell

    Hi Harry,

    Please find attached.

    Thanks and Regards.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: VBA Macro to Input Data in a cell

    Will this work for you.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-21-2012
    Location
    Lagos
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: VBA Macro to Input Data in a cell

    Hi Harry,

    It worked perfectly. For me you have made the impossible possible.

    Thanks.

  8. #8
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: VBA Macro to Input Data in a cell

    You're welcome akynyemi.
    Thank you for the rep.

  9. #9
    Registered User
    Join Date
    02-21-2012
    Location
    Lagos
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: VBA Macro to Input Data in a cell

    Hi Harry,

    I did post a thread a few days ago and have not received any response till now. Do you have any idea about this vba issue I have below.

    VBA Code to Request a Password When Path (File Location) of Excel File Changes

    I want a VBA Code to password an excel file in a way that a password/New Password would be required/requested to open the file if the present path of the file is changed to another path. e.g. Password/New Password would be requested if C:\Users\Frank\Desktop\Excel.xlsx Changes to C:\Users\Mark\Desktop\Excel.xlsx or put more lightly, excel file to request password to open if the file is copied from one location to the other or from one computer to the other.

    Thanks a million.

  10. #10
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: VBA Macro to Input Data in a cell

    I can always take a look to that thread.

  11. #11
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: VBA Macro to Input Data in a cell

    @akynyemi,

    Moderators Note:
    • Please follow Forum Rule #3 and use code tags.
    • Added this time in post #3, but please use them in the future…Thanks.
    HTH
    Regards, Jeff

+ 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