+ Reply to Thread
Results 1 to 7 of 7

Using selection with cells.find

  1. #1
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    Exclamation Using selection with cells.find

    Hello everybody!

    Another problem for me today... with this code:
    Please Login or Register  to view this content.
    Here I tried to keep the selection in "pl" in order to use it after for example like that:

    Please Login or Register  to view this content.
    It doesn't work and I need help please!

  2. #2
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Using selection with cells.find

    Hi. Show file and explain what you want to get in the end. Maybe the solution will be completely different from what you had imagined.
    To do it for me and help me it is 2 different things!
    Sorry for my english, blame Google translator

  3. #3
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    Re: Using selection with cells.find

    Hi kalbasiatka! Thanks for your answer!!

    So in this part:
    Please Login or Register  to view this content.
    The user enter a year in the inputbox, for example "2010" (step 1). The header "2010" entered by the user is selected in the data table(step 2). The corresponding column is selected (step 3). In the step 4 I tried to put the address of the selected column in a variable "pl" (step 4) because I need to use it after.

    I mean here :

    Please Login or Register  to view this content.
    where I need to use "pl" (the address of the selected column) to apply a "scripting.dictionary" on the selected column. So use the corresponding
    column address with Range ().

    I don't know if this explication is better? thank you again for your help!

  4. #4
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Using selection with cells.find

    Maybe so?
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    Re: Using selection with cells.find

    Re,
    I tried like that but it doesn't work!

    Please Login or Register  to view this content.
    In fact, I need to set the "dictionary" with a range of cells, which are selected by the user through ".cells.find()".

  6. #6
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Using selection with cells.find

    Do not understand why such manipulations
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-08-2016
    Location
    France
    MS-Off Ver
    2013
    Posts
    58

    Re: Using selection with cells.find

    Because I begin! ) Thank you very much for your help!! That works!! and I have to find where I made my mistake

    Thanks a lot!!
    Last edited by maroon1; 05-09-2016 at 12:53 PM.

+ 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. [SOLVED] VBA copy paste a selection then find the current date and copy this selection row 61
    By woocaro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-30-2015, 11:07 AM
  2. [SOLVED] Change selection of cells to selection of rows
    By olwy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-13-2014, 11:38 AM
  3. Replies: 7
    Last Post: 04-30-2014, 11:23 AM
  4. [SOLVED] I need help range selection and cells selection
    By venkatpvc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2013, 07:36 PM
  5. Autolock Cells from a Drop Down List Selection and a Calendar Selection
    By John Anderson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-04-2013, 10:54 AM
  6. How to find whether given selection of cells contains empty cell or not
    By vsbhogar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-18-2012, 09:19 AM
  7. [SOLVED] How to code the selection.find not to crash when the data to find is blank
    By evertjvr in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-25-2012, 03:04 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