+ Reply to Thread
Results 1 to 2 of 2

Need help with VBA Macro

  1. #1
    Brett Smith
    Guest

    Need help with VBA Macro

    I am programming a VBA Macro and it is giving me HELL! I basically am
    checking through each record and formatting the text in a certain way. The
    text is being exported into a text file and saved in the same directory as
    the excel spreadsheet. I used select statements to check through each
    record. Each field has a text string before displaying the record. When the
    field is null, the text string shouldn't even show up on the text file. But,
    my problem is it still displays the text string within the text file. How do
    I not display the text string for each field when it is a null field?

  2. #2
    Tim Williams
    Guest

    Re: Need help with VBA Macro

    If you post your current code (or at least the gist of it) then someone
    might suggest a simple change. Otherwise we have to figure out exactly what
    you're doing to the point where we can write a full procedure - not so
    simple.

    The best I can offer is to suggest testing for null fileds and in those
    cases not writing the record to the file....

    Regards
    Tim

    "Brett Smith" <[email protected]> wrote in message
    news:[email protected]...
    >I am programming a VBA Macro and it is giving me HELL! I basically am
    > checking through each record and formatting the text in a certain way.
    > The
    > text is being exported into a text file and saved in the same directory as
    > the excel spreadsheet. I used select statements to check through each
    > record. Each field has a text string before displaying the record. When
    > the
    > field is null, the text string shouldn't even show up on the text file.
    > But,
    > my problem is it still displays the text string within the text file. How
    > do
    > I not display the text string for each field when it is a null field?




+ 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