+ Reply to Thread
Results 1 to 5 of 5

Variable Question

  1. #1
    alvin Kuiper
    Guest

    Variable Question

    Hi
    If i have this
    With Worksheets("Ark1")
    Set cell = .Cells(Rows.Count, 1).End(xlUp)
    End With
    If Not IsEmpty(cell) Then Set cell = cell(2)
    cell.Value = antal

    What type is Cell as vaiable

    Regards alvin


  2. #2
    Otto Moehrbach
    Guest

    Re: Variable Question

    As you have it, cell is a range. HTH Otto
    "alvin Kuiper" <alvinKuiper@discussions.microsoft.com> wrote in message
    news:9C8534BF-28AC-4A80-AAF8-1E7DCD0F4A7D@microsoft.com...
    > Hi
    > If i have this
    > With Worksheets("Ark1")
    > Set cell = .Cells(Rows.Count, 1).End(xlUp)
    > End With
    > If Not IsEmpty(cell) Then Set cell = cell(2)
    > cell.Value = antal
    >
    > What type is Cell as vaiable
    >
    > Regards alvin
    >




  3. #3
    alvin Kuiper
    Guest

    Re: Variable Question

    Thanks
    Alvin

    "Otto Moehrbach" wrote:

    > As you have it, cell is a range. HTH Otto
    > "alvin Kuiper" <alvinKuiper@discussions.microsoft.com> wrote in message
    > news:9C8534BF-28AC-4A80-AAF8-1E7DCD0F4A7D@microsoft.com...
    > > Hi
    > > If i have this
    > > With Worksheets("Ark1")
    > > Set cell = .Cells(Rows.Count, 1).End(xlUp)
    > > End With
    > > If Not IsEmpty(cell) Then Set cell = cell(2)
    > > cell.Value = antal
    > >
    > > What type is Cell as vaiable
    > >
    > > Regards alvin
    > >

    >
    >
    >


  4. #4
    Bob Phillips
    Guest

    Re: Variable Question

    You can easily find out. Step through the code, and after setting the value,
    drag a copy of cell into the Watch window and it will tell you in there.

    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "alvin Kuiper" <alvinKuiper@discussions.microsoft.com> wrote in message
    news:9C8534BF-28AC-4A80-AAF8-1E7DCD0F4A7D@microsoft.com...
    > Hi
    > If i have this
    > With Worksheets("Ark1")
    > Set cell = .Cells(Rows.Count, 1).End(xlUp)
    > End With
    > If Not IsEmpty(cell) Then Set cell = cell(2)
    > cell.Value = antal
    >
    > What type is Cell as vaiable
    >
    > Regards alvin
    >




  5. #5
    alvin Kuiper
    Guest

    Re: Variable Question

    Wow not bad at all
    Thanks
    Alvin


    "Bob Phillips" wrote:

    > You can easily find out. Step through the code, and after setting the value,
    > drag a copy of cell into the Watch window and it will tell you in there.
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (remove nothere from the email address if mailing direct)
    >
    > "alvin Kuiper" <alvinKuiper@discussions.microsoft.com> wrote in message
    > news:9C8534BF-28AC-4A80-AAF8-1E7DCD0F4A7D@microsoft.com...
    > > Hi
    > > If i have this
    > > With Worksheets("Ark1")
    > > Set cell = .Cells(Rows.Count, 1).End(xlUp)
    > > End With
    > > If Not IsEmpty(cell) Then Set cell = cell(2)
    > > cell.Value = antal
    > >
    > > What type is Cell as vaiable
    > >
    > > Regards alvin
    > >

    >
    >
    >


+ 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