Results 1 to 4 of 4

Thread: get info form another sheet using command button???

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Location
    Durham,NC
    Posts
    12

    get info form another sheet using command button???

    I have a command button on sheet 1, that when it is pushed I need it to pull up a "pop up" - "message" box with the info form sheet 20 .

    Can this be done and how??
    Kimberly

  2. #2
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456

    Re: get info form another sheet using command button???

    Originally posted by khelbert
    I have a command button on sheet 1, that when it is pushed I need it to pull up a "pop up" - "message" box with the info form sheet 20 .

    Can this be done and how??
    What are we talking about here ? VB or Excel ?

  3. #3
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476
    VB Code:
    1. Dim ws as Worksheet
    2. Dim tmp as String
    3.  
    4. tmp = ws.worksheets(20).range("a",1)
    5. msgbox tmp

    worksheets(put the number of the worksheet you want information from here).range(put the cells your want the information from here)

    I did not test this, just an idea to get you on the right track,


    Hope I could help,


    Stephan
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

  4. #4

    Thread Starter
    New Member
    Join Date
    Apr 2003
    Location
    Durham,NC
    Posts
    12
    the worksheet is Excel, but I have use VB for the buttons, check boxes and etc. I have the VB code to make the button take me to sheet 20 but I only want the info on that page to come up in a "pop up" message window - not take me to that page.
    Kimberly

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width