+ Reply to Thread
Results 1 to 2 of 2

Add comment to text file based on checkbox

  1. #1
    Forum Contributor
    Join Date
    05-09-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2016
    Posts
    543

    Add comment to text file based on checkbox

    The below VB will create a text file based on the attached file. what I am trying to do is add a checkbox (in cell F7) to that sheet, that if it is checked then the values are added to each line (last text in bold below). Thank you .

    VB
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,659

    Re: Add comment to text file based on checkbox

    Add this to the end of each line...

    & IIf(Sheet1.CheckBox1, vbTab & ActiveSheet.Range("F9").Value, "")

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Add/ Remove a specifc text string to a cell based on a checkbox
    By Grilleman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-18-2014, 03:24 PM
  2. [SOLVED] Copy text to clipboard based on CheckBox value on Command Button click
    By askpcguy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2014, 01:21 AM
  3. Cell's text / comment (no comment )
    By Marianus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-22-2013, 06:05 AM
  4. Disable Delete Comment, Edit Comment, Show/Hide Comment
    By Shanthan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2013, 06:12 AM
  5. Read whole file,Match the headers based on specific condition & write to text file
    By macromaniac in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-07-2011, 06:37 AM
  6. Write text to cell based on checkbox?
    By proepert in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2010, 09:10 AM
  7. [SOLVED] Fill Color based on Comment Text
    By MikeF in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2005, 01:40 PM

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