Results 1 to 7 of 7

Writing values from forms to sheet

Threaded View

  1. #1
    Registered User
    Join Date
    07-30-2010
    Location
    Warrington, England
    MS-Off Ver
    Excel 2010
    Posts
    71

    Question Writing values from forms to sheet

    Hi,

    I'm fairly new to using VBA and have a problem writing back values from a form to a worksheet. Here's what I've done

    When the form initializes this occurs

    Dim MyRange as range
    Set MyRange = Sheets ("Sheet1").Range ("A1")
    I have a control on the form which, when updated, I'd like to store the value in the above range therefore within the controls subprocedure I have

    Private MyControl_Afterupdate()

    MyRange = MyControl.Value

    End Sub
    When I enter a value in the form I don't get any error messages but I'm also not getting the value stored in the worksheet. Any help would be appreciated

    Many thanks

    Mike
    Last edited by Mike_e; 10-12-2011 at 05:43 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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