+ Reply to Thread
Results 1 to 6 of 6

Storing selection & using the saved selection adress later

Hybrid View

Guest Storing selection & using the... 04-18-2006, 04:40 AM
Guest RE: Storing selection & using... 04-18-2006, 05:45 AM
Guest RE: Storing selection & using... 04-18-2006, 06:25 AM
Guest RE: Storing selection & using... 04-18-2006, 06:45 AM
Guest RE: Storing selection & using... 04-18-2006, 06:55 AM
Guest RE: Storing selection & using... 04-18-2006, 07:10 AM
  1. #1
    Ozgur Pars
    Guest

    Storing selection & using the saved selection adress later

    Hello,
    I am trying to save the current selection adress as a variable (or name) &
    make some calculations and then make excel reselect the original selection.
    Just to clarify this procedure is intended to be used in different kinds of
    workbooks/users.

    Thanks in advance for your time and help,
    Ozgur

  2. #2
    Peter Rooney
    Guest

    RE: Storing selection & using the saved selection adress later

    Ozgur,

    Try this:

    Dim WhereWasI As String
    WhereWasI = Selection.Address

    then later:

    Range(WhereWasI).Select

    Hope this helps

    Pete




    "Ozgur Pars" wrote:

    > Hello,
    > I am trying to save the current selection adress as a variable (or name) &
    > make some calculations and then make excel reselect the original selection.
    > Just to clarify this procedure is intended to be used in different kinds of
    > workbooks/users.
    >
    > Thanks in advance for your time and help,
    > Ozgur


  3. #3
    Ozgur Pars
    Guest

    RE: Storing selection & using the saved selection adress later

    Peter,
    thank you very much it worked like a charm.

    Ozgur

    "Peter Rooney" wrote:

    > Ozgur,
    >
    > Try this:
    >
    > Dim WhereWasI As String
    > WhereWasI = Selection.Address
    >
    > then later:
    >
    > Range(WhereWasI).Select
    >
    > Hope this helps
    >
    > Pete
    >
    >
    >
    >
    > "Ozgur Pars" wrote:
    >
    > > Hello,
    > > I am trying to save the current selection adress as a variable (or name) &
    > > make some calculations and then make excel reselect the original selection.
    > > Just to clarify this procedure is intended to be used in different kinds of
    > > workbooks/users.
    > >
    > > Thanks in advance for your time and help,
    > > Ozgur


  4. #4
    Peter Rooney
    Guest

    RE: Storing selection & using the saved selection adress later

    You're welcome! Can I have a green tick, please? I wanna be an MVP! :O)

    Regards

    Pete


    "Ozgur Pars" wrote:

    > Peter,
    > thank you very much it worked like a charm.
    >
    > Ozgur
    >
    > "Peter Rooney" wrote:
    >
    > > Ozgur,
    > >
    > > Try this:
    > >
    > > Dim WhereWasI As String
    > > WhereWasI = Selection.Address
    > >
    > > then later:
    > >
    > > Range(WhereWasI).Select
    > >
    > > Hope this helps
    > >
    > > Pete
    > >
    > >
    > >
    > >
    > > "Ozgur Pars" wrote:
    > >
    > > > Hello,
    > > > I am trying to save the current selection adress as a variable (or name) &
    > > > make some calculations and then make excel reselect the original selection.
    > > > Just to clarify this procedure is intended to be used in different kinds of
    > > > workbooks/users.
    > > >
    > > > Thanks in advance for your time and help,
    > > > Ozgur


  5. #5
    Ozgur Pars
    Guest

    RE: Storing selection & using the saved selection adress later

    Peter sure you definately saved my day... is it enough that I asnwer the "Did
    this post answer the question" as yes?
    I ask this because I did post several "yes" answers and the green tick did
    not appear(at least to me)

    "Peter Rooney" wrote:

    > You're welcome! Can I have a green tick, please? I wanna be an MVP! :O)
    >
    > Regards
    >
    > Pete
    >
    >
    > "Ozgur Pars" wrote:
    >
    > > Peter,
    > > thank you very much it worked like a charm.
    > >
    > > Ozgur
    > >
    > > "Peter Rooney" wrote:
    > >
    > > > Ozgur,
    > > >
    > > > Try this:
    > > >
    > > > Dim WhereWasI As String
    > > > WhereWasI = Selection.Address
    > > >
    > > > then later:
    > > >
    > > > Range(WhereWasI).Select
    > > >
    > > > Hope this helps
    > > >
    > > > Pete
    > > >
    > > >
    > > >
    > > >
    > > > "Ozgur Pars" wrote:
    > > >
    > > > > Hello,
    > > > > I am trying to save the current selection adress as a variable (or name) &
    > > > > make some calculations and then make excel reselect the original selection.
    > > > > Just to clarify this procedure is intended to be used in different kinds of
    > > > > workbooks/users.
    > > > >
    > > > > Thanks in advance for your time and help,
    > > > > Ozgur


  6. #6
    Peter Rooney
    Guest

    RE: Storing selection & using the saved selection adress later

    Ozgur,

    I got my tick. Thanks very much! Now I'm into double figures! :-)

    Pete



    "Ozgur Pars" wrote:

    > Peter sure you definately saved my day... is it enough that I asnwer the "Did
    > this post answer the question" as yes?
    > I ask this because I did post several "yes" answers and the green tick did
    > not appear(at least to me)
    >
    > "Peter Rooney" wrote:
    >
    > > You're welcome! Can I have a green tick, please? I wanna be an MVP! :O)
    > >
    > > Regards
    > >
    > > Pete
    > >
    > >
    > > "Ozgur Pars" wrote:
    > >
    > > > Peter,
    > > > thank you very much it worked like a charm.
    > > >
    > > > Ozgur
    > > >
    > > > "Peter Rooney" wrote:
    > > >
    > > > > Ozgur,
    > > > >
    > > > > Try this:
    > > > >
    > > > > Dim WhereWasI As String
    > > > > WhereWasI = Selection.Address
    > > > >
    > > > > then later:
    > > > >
    > > > > Range(WhereWasI).Select
    > > > >
    > > > > Hope this helps
    > > > >
    > > > > Pete
    > > > >
    > > > >
    > > > >
    > > > >
    > > > > "Ozgur Pars" wrote:
    > > > >
    > > > > > Hello,
    > > > > > I am trying to save the current selection adress as a variable (or name) &
    > > > > > make some calculations and then make excel reselect the original selection.
    > > > > > Just to clarify this procedure is intended to be used in different kinds of
    > > > > > workbooks/users.
    > > > > >
    > > > > > Thanks in advance for your time and help,
    > > > > > Ozgur


+ 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