Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2013, 07:33 AM
JohnWilson JohnWilson is offline Copying a variable size table from Excel via VBA Windows 7 64bit Copying a variable size table from Excel via VBA Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,913
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

That creates an Excel object but doesn't necessarily set a reference to Excel Code. (You would do this in the VBE Tools > References)

If you didn't do this xlToRight and xlDown mean nothing to PowerPoint (they are Excel constants) try this instead.


c = Range("D14").End(-4161).Column
r = Range("D14").End(-4121).Row
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a table for a variable number of rows OllieOnline Mail Merge 1 03-27-2013 02:48 PM
Using macro to add variable number of rows to a protected word table Julia Word Tables 1 01-09-2013 06:04 AM
Copying a variable size table from Excel via VBA Run-time error '91': Object variable or With block variable not set tinfanide Excel Programming 2 06-10-2012 10:17 AM
Copying a variable size table from Excel via VBA Copying table styles Ulodesk Word 1 09-13-2011 03:31 PM
Copying a variable size table from Excel via VBA copying a table Gunfighter Word Tables 1 05-31-2011 03:34 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:23 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