Results 1 to 25 of 25

Label update value issue

Threaded View

  1. #1
    Registered User
    Join Date
    10-12-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    94

    Label update value issue

    Hi Guys, seek your expertise to look at below code. Label 5-10 value (breakdown by position)will update automatically once new data entered. But for Label 34 onward (breakdown by properties)will update the value after reset the UF. You may refer to attached file. Any idea?

    Private Sub UserForm_Activate()
    Me.TextBox2.SetFocus
      UserForm1.Label5.Caption = Sheet4.Range("B4").Value
      UserForm1.Label6.Caption = Sheet4.Range("C4").Value
      UserForm1.Label7.Caption = Sheet4.Range("D4").Value
      UserForm1.Label8.Caption = Sheet4.Range("E4").Value
      UserForm1.Label9.Caption = Sheet4.Range("F4").Value
      UserForm1.Label10.Caption = Sheet4.Range("G4").Value
      UserForm1.Label34.Caption = Sheet4.Range("C7").Value
      UserForm1.Label36.Caption = Sheet4.Range("D7").Value
      UserForm1.Label40.Caption = Sheet4.Range("E7").Value
      UserForm1.Label47.Caption = Sheet4.Range("F7").Value
      UserForm1.Label35.Caption = Sheet4.Range("C8").Value
      UserForm1.Label38.Caption = Sheet4.Range("D8").Value
      UserForm1.Label42.Caption = Sheet4.Range("E8").Value
      UserForm1.Label48.Caption = Sheet4.Range("F8").Value
      UserForm1.Label50.Caption = Sheet4.Range("G7").Value
      UserForm1.Label51.Caption = Sheet4.Range("G8").Value
      UserForm1.Label49.Caption = Sheet4.Range("G9").Value
    End Sub
    If anybody can assist to amend the above code to more professional/ neat are welcome...

    Thank you.
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Label formatting issue
    By dj322 in forum Excel General
    Replies: 3
    Last Post: 08-20-2014, 11:35 PM
  2. Data Label Issue
    By zooropa33 in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 05-08-2014, 01:46 AM
  3. [SOLVED] 100% stacked bar issue on data label
    By sarinky in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-02-2013, 07:08 AM
  4. [SOLVED] update label or text box
    By JT in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2005, 05:06 PM
  5. update Label and other component
    By Maileen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2005, 06:06 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