Copy text with button

snekkis

New Member
Joined
Feb 11, 2013
Messages
16
I come for Filemaker and I'm switching over to Access. I want to have a button copy text from a field in a current record. In the Macro design, there is no action for this purpose. I guess it is here you must know VBA code, but from Filemaker I'm used to a lot more script actions than here. I don't have a clue how to do or learn this.

I have one table, one field, and want to have a button copy the text from that one field from that current record to the clipboard.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Did some more searches copy-pasted some VBA code I don't understand, and it was solved. Sorry for posting.
VBA Code:
Private Sub Command5_Click()
 Me!Innhold.SetFocus
   DoCmd.RunCommand acCmdCopy
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,988
Messages
6,182,186
Members
453,093
Latest member
Soffy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top