+ Reply to Thread
Results 1 to 2 of 2

Spreadsheet not upadating from User form

Hybrid View

  1. #1
    Registered User
    Join Date
    07-20-2010
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    59

    Spreadsheet not upadating from User form

    Hi,

    The following code is supposed to populate a spreadsheet with two items formatted as %. However, regardless of the content of the texboxes the spreadsheet populates both ranges with 0%.

    
    Private Sub cmdAddRamp_Click()
    
    Range("deRamp1Line1").Value = Val(frmvariables.txtQtrsRamp1Line1.Value)
    Range("deRamp2Line1").Value = Val(frmvariables.txtQtrsRamp2Line1.Value)
    
    
    Unload Me
    End Sub
    
    
    Private Sub sbRamp1Line1_SpinUp()
    
     Dim n As Double
            n = Val(frmvariables.txtRamp1Line1.Value) + 1
            frmvariables.txtRamp1Line1.Value = Format(n / 100, "0%")
    
    End Sub
    Private Sub sbRamp1Line1_SpinDown()
    
     Dim n As Double
            n = Val(frmvariables.txtRamp1Line1.Value) - 1
            frmvariables.txtRamp1Line1.Value = Format(n / 100, "0%")
    
    End Sub
    
    
    Private Sub sbRamp2Line1_SpinUp()
    
     Dim n As Double
            n = Val(frmvariables.txtRamp2Line1.Value) + 1
            frmvariables.txtRamp2Line1.Value = Format(n / 100, "0%")
    
    End Sub
    Private Sub sbRamp2Line1_SpinDown()
    
     Dim n As Double
            n = Val(frmvariables.txtRamp2Line1.Value) - 1
            frmvariables.txtRamp2Line1.Value = Format(n / 100, "0%")
    
    End Sub
    Any ideas?

    Thanks,

    Andrew

  2. #2
    Registered User
    Join Date
    07-20-2010
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: Spreadsheet not upadating from User form

    Problem Solved!!

+ 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. User form to fill in ID number onto another spreadsheet
    By ln1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-29-2012, 07:01 AM
  2. User Form and getting data into spreadsheet
    By billykiller05 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2009, 04:10 PM
  3. Referencing an embeded spreadsheet within a user form.
    By Neil07979 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2009, 11:26 AM
  4. user form - next step to get it on to a spreadsheet and working
    By tigertim71 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-02-2008, 04:20 AM
  5. User form and hiding spreadsheet
    By Chip Smith in forum Excel General
    Replies: 0
    Last Post: 03-29-2006, 02:50 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