Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-26-2015, 03:32 AM
catflap's Avatar
catflap catflap is offline Refer to cell in embedded Excel object within word Windows XP Refer to cell in embedded Excel object within word Office XP
Advanced Beginner
Refer to cell in embedded Excel object within word
 
Join Date: Aug 2015
Location: UK
Posts: 77
catflap is on a distinguished road
Default Refer to cell in embedded Excel object within word


Hi there

I have a word doc and have inserted the excel object within it. What I'd like to do is be able to refer to the value of cell A1 within the sheet with the aim of changing it from vba.

The goal is for me to get the value of a merge field from a datasource attached to the word doc, then change the cell value in the excel sheet to this merge value. I'd loop through the datasource one record at a time. This would hopefully be a bit of a kludge way of taking advantage of excel's ability to shrink or expand text to fit a box - something I've never found a way to do in a word mail-merge without a lot of trouble.

So what I need to know is how to refer to the cell in word vba.

Thanks for reading! - I know it's a bit convoluted but I thought I'd better explain it all.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Refer to cell in embedded Excel object within word Excel table: refer to a particular row? tinfanide Excel 10 08-05-2015 01:17 PM
Refer to cell in embedded Excel object within word If (C1 = refer to a cell in a range) then (show the description in C2) & (corresponding price in C3) lily Excel 9 10-23-2014 06:21 AM
Refer to cell in embedded Excel object within word Edit embedded Visio object in Word TimTDP Visio 12 01-26-2014 12:43 AM
An embedded object's formatting gets jumbled New Daddy PowerPoint 0 11-17-2013 08:13 PM
Refer to cell in embedded Excel object within word Editing an embedded OLE object DugganSC Word VBA 1 08-29-2011 01:40 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:32 PM.


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