Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2013, 09:47 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

Depends exactly what you mean but maybe:



objWbk.worksheets("Exec Summary").UsedRange.Copy
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #2  
Old 06-03-2013, 03:34 AM
-=bb=- -=bb=- 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
Novice
Copying a variable size table from Excel via VBA
 
Join Date: May 2013
Posts: 8
-=bb=- is on a distinguished road
Default

Quote:
Originally Posted by JohnWilson View Post
Depends exactly what you mean but maybe:

objWbk.worksheets("Exec Summary").UsedRange.Copy
Hi John,

Thank you very much for taking the time to reply - sorry for the lateness of my reply I have been out of the office for a few days on personal leave.

Unfortunately using the method that you mention above, I get an Object Required Error.

My code looks like this currently

Code:
 
With objWbk.worksheets("Surveyed Area by Area")
        Range("D14").Activate
        UsedRange.Copy
EndWith
Application.ActiveWindow.View.PasteSpecial (ppPasteBitmap)
I am sure it is something particularly numpty-ish that I'm doing!

Many thanks
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 06:34 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