Andreas Hermle
asked on
Copy into the clipboard and paste from clipboard into cell of currently selected table.
Dear Experts:
I would like to incorporate two code snippets in a couple of macro codes. I wonder whether you could help me out with then.
Code snippet 1:
A number with the following make-up (##-###-##-##) is to be selected in cell (15,1) of the currently selected table and copied into the clipboard.
Code snippet 2:
The clipboard is to be emptied and pasted into the currently selected table ...
in cell (16,2) after the 28th character.
Help is much appreciated. Thank you very much in advance.
Regards, Andreas
I would like to incorporate two code snippets in a couple of macro codes. I wonder whether you could help me out with then.
Code snippet 1:
A number with the following make-up (##-###-##-##) is to be selected in cell (15,1) of the currently selected table and copied into the clipboard.
Code snippet 2:
The clipboard is to be emptied and pasted into the currently selected table ...
in cell (16,2) after the 28th character.
Help is much appreciated. Thank you very much in advance.
Regards, Andreas
ASKER
Dear ragnarok89:
Thank you very much for your swift answer. I am aware that I could record it, but - to be honest with you - I would like a professional solution. The macro recorder often records things that in a strict programmer sense is no good.
Regards, Andreas
Thank you very much for your swift answer. I am aware that I could record it, but - to be honest with you - I would like a professional solution. The macro recorder often records things that in a strict programmer sense is no good.
Regards, Andreas
ASKER
Dear all:
only code snippet 2 is relevant. In the meantime I found a solution for code snippet 1.
Here again my requirements for the code snippet:
The clipboard is to be emptied and pasted into the currently selected table ...
in cell (16,2) after the 28th character.
Help is much appreciated. Thank you very much in advance.
Regards, Andreas
only code snippet 2 is relevant. In the meantime I found a solution for code snippet 1.
Here again my requirements for the code snippet:
The clipboard is to be emptied and pasted into the currently selected table ...
in cell (16,2) after the 28th character.
Help is much appreciated. Thank you very much in advance.
Regards, Andreas
Can you give me an example?
Sid
Sid
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Please replace "Sheet1" with the respective Sheet Name.
Sid
Sid
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Sid,
thank you very much for your quick support. I guess there must be some understanding here. My question refers to a Word problem. You are referring to Excel in your post.
But thank you anyway for the time taken.
Regards, Andreas
thank you very much for your quick support. I guess there must be some understanding here. My question refers to a Word problem. You are referring to Excel in your post.
But thank you anyway for the time taken.
Regards, Andreas
ASKER
Hi Sagib:
thank you very much for your swift help. This link is a valuable resource, thank you. But, as a matter of fact, my question is a word problem not an Excel problem.
Thank you.
Regards, Andreas
thank you very much for your swift help. This link is a valuable resource, thank you. But, as a matter of fact, my question is a word problem not an Excel problem.
Thank you.
Regards, Andreas
You can make it work in Word by adding a reference to microsoft forms.
To do that, in VBA, go to
tools > references > browse
and select
c:\windows\system32\FM20.D LL
and make sure that microsoft forms 2.0 is in the list and checked.
Saqib
To do that, in VBA, go to
tools > references > browse
and select
c:\windows\system32\FM20.D
and make sure that microsoft forms 2.0 is in the list and checked.
Saqib
Andreas: My apologies for not checking that but then again the logic remains the same in word table as well.
Directly assign the value from one cell of the table to the another. You don't need a clipboard for it.
Sid
Directly assign the value from one cell of the table to the another. You don't need a clipboard for it.
Sid
ASKER
Hi,
thank you very much to both of you for your professional. Regards, Andreas
thank you very much to both of you for your professional. Regards, Andreas
Al