CaptainBeardsEyesBeard Posted November 4, 2022 Share Posted November 4, 2022 I'd like to do use a tab indent on my results file for testing applications So when I open it in Excel it appears in column B I tried doing this but it just put the text on a newline without the indent FileWrite($TestResults, @CRLF & "Performance Tests: " & $TestResultText) FileWrite($TestResults, @CRLF & " Time it took for element to appear") FileWrite($TestResults, @CRLF & " " & $fDiff) Link to comment Share on other sites More sharing options...
Danp2 Posted November 4, 2022 Share Posted November 4, 2022 Check the file using a text editor. It's likely that Excel is stripping the leading spaces. You should try using @Tab instead of spaces. Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Nine Posted November 4, 2022 Share Posted November 4, 2022 FileWrite in Excel ? Since all the time you have been here, you should know that writing a few lines of code out of context is truly useless to us. It would be nice from time to time to post a runable script that we can use as the base to help you find a solution. Anyway if you want to indent in excel, you need to use the property Range.IndentLevel like this : $oWorkBook.ActiveSheet.Range("E5").IndentLevel = 2 Of course I have no idea if this is what you are looking for... Musashi 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now