+ Reply to Thread
Results 1 to 3 of 3

Quick English to VBA

Hybrid View

  1. #1
    Registered User
    Join Date
    03-21-2006
    Posts
    10

    Quick English to VBA

    Please help me translate this code
    to VBA!

    if textbox1 = nothing (as in no information) Then do not write anything or erase anything

    if textbox1 = anything THEN write anything in given cell
    ie. ws.Cells(iRow, 1).Value = Me.textbox1.Value

  2. #2
    Chip Pearson
    Guest

    Re: Quick English to VBA

    Try something like

    If Me.TextBox1.Text <> "" Then
    ws.Cells(iRow,1).Value = Me.TextBox1.Text
    End If


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "Trintrin"
    <Trintrin.25ccoj_1143484597.2288@excelforum-nospam.com> wrote in
    message
    news:Trintrin.25ccoj_1143484597.2288@excelforum-nospam.com...
    >
    > Please help me translate this code
    > to VBA!
    >
    > if textbox1 = nothing (as in no information) Then do not write
    > anything
    > or erase anything
    >
    > if textbox1 = anything THEN write anything in given cell
    > ie. -ws.Cells(iRow, 1).Value = Me.textbox1.Value-
    >
    >
    > --
    > Trintrin
    > ------------------------------------------------------------------------
    > Trintrin's Profile:
    > http://www.excelforum.com/member.php...o&userid=32681
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=526824
    >




  3. #3
    Registered User
    Join Date
    03-21-2006
    Posts
    10
    oh ok, now I get it.

    Sorry i had to ask you twice. Thanks a lot!!!!

+ 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