Hi,
I have an Excel sheet with repeating data in column A. I have made a unique filter of that data and placed it in column E.
I used shell function (shell "Notepad.exe") to open the Notepad
I copied the data from column E of Excel and pasted it in Notepad by using SendKeys.
(SendKeys "^V").
I want to save this notepad to a particular location, but how to do it...??
Can anybody help me...
Here is the code snippet:
I have an Excel sheet with repeating data in column A. I have made a unique filter of that data and placed it in column E.
I used shell function (shell "Notepad.exe") to open the Notepad
I copied the data from column E of Excel and pasted it in Notepad by using SendKeys.
(SendKeys "^V").
I want to save this notepad to a particular location, but how to do it...??
Can anybody help me...
Here is the code snippet:
Code:
Range("A1").AutoFilter
Range("A:A").AdvancedFilter action:=xlFilterCopy, CopyToRange:=Range( _
"E1"), Unique:=True
'Range("E1").End(xlDown).Copy
Range("E2").Select
Range(Selection, Selection.End(xlDown)).Copy
Ntpd = Shell("Notepad.exe", vbNormalFocus)
SendKeys "^V"