Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Excel 2016 -where is the code? in macro recording file explorer is used to open MS notepad, select all, copy and paste into excel cell A1 - no code shown for the filename opened and copied

$
0
0

Sub mcr_000_import_todays_schedlog()
' Comments : Created by RBDiamond for training purposes
' mcr_000_import_todays_schedlog Macro

    Sheets.Add After:=ActiveSheet
    Range("A1").Select
    ActiveSheet.PasteSpecial Format:="Unicode Text", Link:=False, _
        DisplayAsIcon:=False, NoHTMLFormatting:=True
End Sub

This does not show 1. the network path 2. opening the filename 3. selecting all the text 3. copying the text 4. pasting the text into excel cell A1.  Shocking to me this works great but a few programmer friends cannot find the (hidden) code to make it so. I do need to edit the filename or path in the future.

h:\WC_OUT\Outage\p6logs\today_schedlog.txt


Viewing all articles
Browse latest Browse all 11829

Trending Articles