Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Ranges, adding a column to a named print range then saving the file

By going though the messages i leaned how to add the column i need: Set
tRange = Range("Print_Area").Resize(, 1 +
Range("Print_Area").Columns.Count), however how do i save this back to
the speadsheet? i can't seem to figure that out.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Ranges, adding a column to a named print range then saving the file

With Worksheets("Sheet1")
with .range("Print_Area")
.resize(,.columns.count + 1).name = "'" & .parent.name & "'!Print_Area"
end with
end with

This worked ok for me as long as there was that range named Print_Area.

wrote:

By going though the messages i leaned how to add the column i need: Set
tRange = Range("Print_Area").Resize(, 1 +
Range("Print_Area").Columns.Count), however how do i save this back to
the speadsheet? i can't seem to figure that out.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Join non-contiguous ranges into one range via named range? ker_01 Excel Discussion (Misc queries) 3 May 1st 09 11:09 AM
Dynamic named ranges not saving Michael Beckinsale Excel Programming 2 March 23rd 06 01:56 PM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM
adding named ranges Mike EHB-Docks New Users to Excel 7 April 8th 05 01:53 PM
Macro (Print) - Calling Named Ranges KGlennC Excel Discussion (Misc queries) 1 March 19th 05 09:20 PM


All times are GMT +1. The time now is 11:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"