+ Reply to Thread
Results 1 to 2 of 2

cell values as label captions

  1. #1
    Rbp9ad
    Guest

    cell values as label captions

    In a userform I want to display cell values in a label. This code gives me a
    subscript out of range.

    label1.caption = workbooks("myworkbook.xls") .worksheets(1).range("a1)



  2. #2
    Tom Ogilvy
    Guest

    Re: cell values as label captions

    label1.caption = workbooks("myworkbook.xls")
    ..worksheets(1).range("a1").Value

    If it still gives you that error message, you don't have a workbook open
    named Myworkbook.xls

    --
    Regards,
    Tom Ogilvy


    "Rbp9ad" <[email protected]> wrote in message
    news:[email protected]...
    > In a userform I want to display cell values in a label. This code gives me

    a
    > subscript out of range.
    >
    > label1.caption = workbooks("myworkbook.xls") .worksheets(1).range("a1)
    >
    >




+ 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