Dear All,
I want to open a notepad file from my excel file, paste a range of cells from my excel file to the current notepad file, name the notepad file same as my current file name and ultimately save it on either Desktop or the same path where my excel file exists and close the notepad file.
Would be very grateful for some light on the same.
PS: i have the code for copying the required data - once this data is copied from Excel, i use the following code:
With Application
Shell "notepad.exe", 3
SendKeys "^v"
VBA.AppActivate .Caption
.CutCopyMode = False
End With
However, this doesnt activate the notepad file, plus I want to name this notepad and close it
I want to open a notepad file from my excel file, paste a range of cells from my excel file to the current notepad file, name the notepad file same as my current file name and ultimately save it on either Desktop or the same path where my excel file exists and close the notepad file.
Would be very grateful for some light on the same.
PS: i have the code for copying the required data - once this data is copied from Excel, i use the following code:
With Application
Shell "notepad.exe", 3
SendKeys "^v"
VBA.AppActivate .Caption
.CutCopyMode = False
End With
However, this doesnt activate the notepad file, plus I want to name this notepad and close it