+ Reply to Thread
Results 1 to 3 of 3

Trying to store a range into a cell

  1. #1
    Registered User
    Join Date
    02-04-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    7

    Trying to store a range into a cell

    Hi Guys,

    I have a userform which requests the user to select several ranges through refedit boxes (several on the same userform).

    As far as I understood, these refedit boxes return a string. I used range(Refedit1.Value) to get the range & store it in a range variable, which all works perfectly.

    However, I would like to store the range in a cell on an excel worksheet, in order to be able to restore this value to the refedit box when the user opens it again (through the initialize procedure).

    But when I try to save the string to my worksheets, nothing happens in the worksheet, the userform closes and excel crashes when I load it again.
    F.e:
    Please Login or Register  to view this content.
    What am I doing wrong?

    Thx
    Last edited by arthurbr; 12-27-2011 at 12:27 PM. Reason: Added code tags

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Trying to store a range into a cell

    Hi Noivilbo

    in the future please remember to add tags around code ( see why in our Forum rules). I added them for you this time

  3. #3
    Registered User
    Join Date
    02-04-2011
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Trying to store a range into a cell

    Sorry - won't happen again,
    Gr

+ 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