+ Reply to Thread
Results 1 to 5 of 5

use active selection from outside

  1. #1
    Forum Contributor
    Join Date
    08-22-2012
    Location
    Czech republic
    MS-Off Ver
    Excel 2010
    Posts
    119

    use active selection from outside

    Hi all,
    I need to search according a cell out of excel (ERP databases). I found a way: I select it in ERP, press CTRL + C, so I get it in memory. I move to excel and run macro, which paste it on unused cell somewhere down, copy it to excel memory and use it for filtering. How can I avoid these additional steps and use ctrl + C memory immediately?

    My code (part in bold should be replaced):
    Please Login or Register  to view this content.
    Thank you for that. You cannot imagine how much time you can save if you are filtering 300 items. :-)
    Petr

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: use active selection from outside

    Try:

    Please Login or Register  to view this content.
    多么想要告诉你 我好喜欢你

  3. #3
    Forum Contributor
    Join Date
    08-22-2012
    Location
    Czech republic
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: use active selection from outside

    Looks nice but compile error appear: User-define type not defined. Any idea? Thanks.

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: use active selection from outside

    Maybe you are missing Microsoft Forms object library reference. See here: http://support.microsoft.com/kb/212730

  5. #5
    Forum Contributor
    Join Date
    08-22-2012
    Location
    Czech republic
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: use active selection from outside

    You were right. It is working. Thank you for that.

+ 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. Replies: 2
    Last Post: 12-23-2012, 09:26 AM
  2. Active workbook selection
    By mfmalthaf in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-23-2012, 09:23 AM
  3. Referring to Active Cell Selection
    By Toby.Leheup in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2011, 06:46 AM
  4. Selection:Active.Cell
    By CARLOS BAPTISTA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2006, 11:05 AM
  5. [SOLVED] Can I determine the active selection's type?
    By MartinS in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2005, 01:06 PM

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