linetext

  1. N

    VBA for saving values in one column to text file

    Hello, New to the forum. I've learned a lot just reading. Wondering if someone can help me with the VBA code below. It DOES save the whole worksheet to a text file, but I would like it to also Only save content in Column K Skip over blank cells in Column K Sub saveText()...
  2. R

    Error runtime 13 export a selected column to text file

    HI Can you help me? This macro give me a error runtime 13 mismatch when the loop arrive to a blank cell how can fix it? i'm sorry for my english Sub saveText2() Dim filename As String, lineText As String Dim myrng As Range, i, j filename = ThisWorkbook.Path & "\Command.txt"...
  3. rjplante

    IIF replacement code

    I have a code that runs fine on Excel 2016 but crashes miserably on 2010. This is the line that fails. lineText = IIf(j = 1, "", lineText & ",") & myrng.Cells(i, j) The entire macro is listed below. I need to know how to convert this to a standard If-Then-Else statement so that it will run...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top