+ Reply to Thread
Results 1 to 5 of 5

Pick a random cell within range of another sheet

  1. #1
    Forum Contributor PY_'s Avatar
    Join Date
    09-23-2008
    Location
    Houston
    MS-Off Ver
    Office 2016
    Posts
    289

    Pick a random cell within range of another sheet

    How do i adjust this code to select the random value from a worksheet that is not the active worksheet without having to first make it active? (The other worksheet is in the current workbook)

    Please Login or Register  to view this content.
    Last edited by PY_; 04-08-2011 at 03:10 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Pick a random cell within range of another sheet

    Try this:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor PY_'s Avatar
    Join Date
    09-23-2008
    Location
    Houston
    MS-Off Ver
    Office 2016
    Posts
    289

    Re: Pick a random cell within range of another sheet

    Thanks for the reply shg. Is there a way to make that appear in a msgbox like the code above?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Pick a random cell within range of another sheet

    Change Application.Goto to MsgBox

  5. #5
    Forum Contributor PY_'s Avatar
    Join Date
    09-23-2008
    Location
    Houston
    MS-Off Ver
    Office 2016
    Posts
    289

    Re: Pick a random cell within range of another sheet

    i feel dumb for missing that haha.

    Thanks shg!

+ 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