Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This recorded VBA macro inserts a specific picture into A22 and resizes
it to 85% of its original size. Sub InsertPicture_Gf4() ' Range("A30").Select ActiveSheet.Pictures.Insert( _ "C:\Users\terry\Dropbox\FinishedWalks\20170809Day0 2Trevone-Porthcothan-J-u502-red-m8.8-Gf4-Elev.jpg" _ ).Select Selection.ShapeRange.ScaleHeight 0.85, msoFalse, msoScaleFromTopLeft Application.CommandBars("Format Object").Visible = False Rows("27:27").Select End Sub But how can I edit that so that the filename "C:\Users\terry\Dropbox\FinishedWalks\20170809Day0 2Trevone-Porthcothan-J-u502-red-m8.8-Gf4-Elev.jpg" is replaced by whatever text is on the clipboard please? Terry, East Grinstead, UK |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
losing text from text box when pasting selection to word | Excel Discussion (Misc queries) | |||
Cutting and pasting large variable text into a text box shape usin | Excel Programming | |||
Pasting Text | Excel Discussion (Misc queries) | |||
Pasting text | Excel Discussion (Misc queries) | |||
Pasting text from Excel to Word (macro) | Excel Programming |