+ Reply to Thread
Results 1 to 4 of 4

Assign active cell in macro with Dynamic Cell choice

  1. #1
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    373

    Assign active cell in macro with Dynamic Cell choice

    Afternoon all,

    Before unloading a userform the range to select the active cell is set to
    Please Login or Register  to view this content.
    to set the active cell to the second row of a named range (Budget) in the first colum which is labeled "JAN" I would like to replace this with a dynamic choice based on a HLOOKUP, where the "mmm" portion of $E$1 is matched to a label in (Budget) and the cell in the second row of that matched colum becomes the active cell.

    I was thinking it to be something like this
    Please Login or Register  to view this content.
    however I get a syntax error when trying to use it.

    Any suggestions???

    As always, many thanks for your time.
    Last edited by scaffdog845; 12-29-2009 at 03:59 PM.
    Click here to read the Forum Rules
    Whatever it is in life you decide to go after, go after with great ferocity.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Assign active cell in macro with Dynamic Cell choice

    Without knowing all particulars you could perhaps try something along lines of:

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Assign active cell in macro with Dynamic Cell choice

    Hi DO,

    I know your preference of using WS functions. It works, but I just wanted to give an alternative

    Please Login or Register  to view this content.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  4. #4
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    373

    Re: Assign active cell in macro with Dynamic Cell choice

    Both suggestions provide the desired results. Thanks for the lesson, your help is always appreciated!

+ 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