+ Reply to Thread
Results 1 to 3 of 3

Syntax to Paste a VBA Integer?

  1. #1
    Registered User
    Join Date
    04-11-2011
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2003
    Posts
    24

    Syntax to Paste a VBA Integer?

    New Poster here,

    hoping this is simple:

    Just trying to figure out how to paste the value of a VBA integer into Excel.

    Basically I have

    Dim lCount As Integer
    ....
    'then lCount is set based on an if statement
    lCount = 4


    how would I paste lCount to an Excel Cell so 4 shows up, in A1 for example?

    Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Syntax to Paste a VBA Integer?

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by nimrod; 04-11-2011 at 08:51 PM.

  3. #3
    Registered User
    Join Date
    04-11-2011
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: Syntax to Paste a VBA Integer?

    .Value = lCount

    so simple lol.

    Thanks so much for the fast reply nimrod.

+ 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