ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   MACRO HELP PLEASE (https://www.excelbanter.com/excel-programming/363872-macro-help-please.html)

Kishor

MACRO HELP PLEASE
 
How can i write a macro in excel to open a pdf file and copy data by select
all command then paste it on excel worksheet ?

ManyManyThanksInAdvance
Kishor.



Gary''s Student

MACRO HELP PLEASE
 
One approach is to first open the file with a shell command:

Sub Macro1()
x = Shell("cmd.exe /c C:\Userguide.pdf", 1)
End Sub

and then use SendKeys to implement the copy/paste.

http://msdn.microsoft.com/library/de...56c24affdd.asp
--
Gary''s Student


"Kishor" wrote:

How can i write a macro in excel to open a pdf file and copy data by select
all command then paste it on excel worksheet ?

ManyManyThanksInAdvance
Kishor.




All times are GMT +1. The time now is 09:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com