+ Reply to Thread
Results 1 to 4 of 4

How to select a particular cell using macros?

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    87

    How to select a particular cell using macros?

    Hello,
    I am trying to recorded a macro to copy the value from a cell. This cell will always be two cells to the right of a cell which has "Purchased" typed into it. I tried to record a macro but it actually assigns a fixed cell value. See the code below, cell Q10 n Q11 are being assinged whereas I want the selection to be 2 cells to the right of the cell having "Purchased" word. How can I edit this bit of code?


    Please Login or Register  to view this content.


    Thanks,
    Aadesh

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: How to select a particular cell using macros?

    Please Login or Register  to view this content.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to select a particular cell using macros?

    hi aadesh. just to share how you can do it with recording, this is what you did:
    1. click on A1
    2. CTRL + F & find "Purchased"
    3. go to the "Developer" tab & press "Use Relative References".
    4. click on 2 cells to the right. this time, what it does is not select Q10:Q11 but relatively 2 cells to the right
    5. Copy

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    08-13-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    87

    Re: How to select a particular cell using macros?

    It worked, thanks!

+ 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