Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hi Guys
Can an excel macro be copied in to a .vbs script and run to (for example) format a .csv file? EG, this script (to open book1.cvs and run this script?? Sub TrimTextRange() Application.ScreenUpdating = False Dim cell As Range, areaToTrim As Range Set areaToTrim = Sheet1.Range("A1:H1000") For Each cell In areaToTrim cell.Value = Trim(cell.Value) Next cell End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to Open excel file when file name is entered in cell | Excel Programming | |||
Excel '00, 1st file has macros, how to stop macro in 2nd file? | Excel Discussion (Misc queries) | |||
how can i call macro in powerpoint file from excel file | Excel Programming | |||
Macro to save Excel file with date and time in the file name? | Excel Programming | |||
VBA Macro to copy an column from one Excel file into another file | Excel Programming |