Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-11-2018, 04:24 PM
dherr dherr is offline How to read an inlineshape which is stored in a table cell Windows 10 How to read an inlineshape which is stored in a table cell Office 2007
Advanced Beginner
How to read an inlineshape which is stored in a table cell
 
Join Date: Nov 2014
Location: Austria
Posts: 45
dherr is on a distinguished road
Default How to read an inlineshape which is stored in a table cell

Hi,
in my Word2007 document I have a column, where in each cell is an inlineshape (picture).
Now I tried to read such a picture from a cell to copy it into another document via macro. Found no solution yet.
Who has a tipp?

Regards - Dietrich
Reply With Quote
  #2  
Old 01-11-2018, 07:23 PM
macropod's Avatar
macropod macropod is offline How to read an inlineshape which is stored in a table cell Windows 7 64bit How to read an inlineshape which is stored in a table cell Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try something based on:
Code:
Sub Demo()
Dim Rng As Range
Set Rng = ActiveDocument.Tables(1).Cell(1, 1).Range
Rng.End = Rng.End - 1
Documents.Add
ActiveDocument.Range.FormattedText = Rng.FormattedText
End Sub
or:
Code:
Sub Demo()
Dim Rng As Range
Set Rng = ActiveDocument.Tables(1).Cell(1, 1).Range.InlineShapes(1).Range
Documents.Add
ActiveDocument.Range.FormattedText = Rng.FormattedText
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to read an inlineshape which is stored in a table cell Changing a spreadsheet from # stored as text to stored as #? markg2 Excel 11 02-10-2017 08:54 AM
How to read an inlineshape which is stored in a table cell Macro will not read the value of cell with a formula in it! grayson1231 Excel Programming 10 03-28-2015 03:47 PM
How to read an inlineshape which is stored in a table cell Read cell from one table into another donaldadams1951 Word VBA 2 02-04-2015 06:46 PM
How to read an inlineshape which is stored in a table cell Move table cell contents from one table to another table or cell in same table donaldadams1951 Word VBA 4 02-04-2015 03:54 PM
Easy send/save Excel data to Database Table or Stored Procedure TonyHarvard Excel 3 07-11-2012 12:43 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:54 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft