MS Word - VBA Help (floating button)

smithj83

New Member
Joined
May 26, 2004
Messages
41
In excel I use the following macro:
With ActiveSheet.Shapes("CommandButton4")
.Top = Target.Offset(3).Top
.Left = Target.Offset(, 0).Left
End With

This allows CommandButton4 to appear to be floating. As the user moves from cell to cell, the button moves too.

My question is:
Can something like this be done in MS WORD?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Does anyone know a way to make this happen? I'd like to have a floating button that appears at the top of the screen ( or page) no matter where the user scrolls in the document.

I know this is a dead thread, but I have the same exact question, and there's a small chance the OP might have found a solution or still be searching.

I'm using Word 2010.
 
Upvote 0
Then again, a button in the quick access toolbar is probably a better solution. That's what I plan to use instead.
 
Upvote 0
Something similar could be done by hooking into Word's selection_change event, but the coding would be much more complex than in Excel.
 
Upvote 0

Forum statistics

Threads
1,225,669
Messages
6,186,346
Members
453,349
Latest member
neam

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