Results 1 to 3 of 3
  1. #1
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,195

    Excel Search

    Hi Guys, Is there a method to add text to an Excel cell for example type in Cell (2 ,3) CLICK TO SEARCH This is the easy part as i have already created in Access! the harder part, when you click on this cell it brings up the "Find and Replace" option ??? instead of pressing Crtl and F key ?



    Thanks in advance

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Cells.Find(What:="bob", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False , SearchFormat:=False).Activate

    tho, the constants may not work in Access, so you can replace them with #'s below:
    xlPart=2
    xlWhole=1
    xlNext=1
    xlByRows=1

  3. #3
    DMT Dave is offline VIP
    Windows 10 Access 2016
    Join Date
    May 2018
    Posts
    1,195
    Hi ranman256, thank you so much, where do i place that code ?

    Is it from my Access code ? .Worksheets(9).Cells(2, 1) = "AND PRESS 'F' KEY" replaced with

    .Worksheets(9).Cells(2, 1) = Cells.Find(What:="bob", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False , SearchFormat:=False).Activate ?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 10-26-2017, 09:24 AM
  2. Access Search folder for excel
    By Chaser in forum Import/Export Data
    Replies: 2
    Last Post: 10-20-2017, 10:18 AM
  3. Macros for exporting search results into excel?
    By Mahendra1000 in forum Access
    Replies: 1
    Last Post: 10-09-2015, 06:52 AM
  4. Search form - Runs a query - Export to Excel
    By ryanmce92 in forum Forms
    Replies: 5
    Last Post: 04-16-2015, 06:16 AM
  5. Replies: 1
    Last Post: 03-26-2015, 11:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums