Results 1 to 5 of 5

VB Code to change format, save in notepad file

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to change format, save in notepad file

    Hello:

    Please refer to attached file.
    I have data in excel sheet as shown in column K
    I need VB Code to go thru each row of data and do the following:
    1. Go thru each cell in column K and if it finds numeric number then format that number to 2 decimal places
    For example K26 has value 14, change the format so that it displays 14.00

    2. Go thru each cell in column K and if it finds numeric negative value then add "$" in front of
    numeric number..
    Example K7 is -232.15, change to $-232.15

    3. Copy column K into notepad file and save as C:\Temp\Test.qif

    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Save Notepad through VBA Macro, having Copied Range of Cells, Pasted into notepad
    By analystbank in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-22-2014, 02:14 AM
  2. Repost - Shell Wait for Notepad to open file and Save
    By jimrosser in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-13-2014, 11:06 AM
  3. VBA Code to Save Excel File As Semi-Colon Delimited Format
    By mab1284 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-03-2014, 09:52 AM
  4. Replies: 3
    Last Post: 02-04-2013, 12:18 PM
  5. Replies: 1
    Last Post: 01-16-2013, 02:02 AM
  6. How to save the opened word document as a Notepad/text file?
    By Rahul888 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-10-2012, 05:38 PM
  7. Replies: 1
    Last Post: 08-30-2009, 11:26 AM

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