A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Programming
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to adjust or resize a range?



 
 
Thread Tools Display Modes
  #1  
Old June 29th 12, 04:47 PM
E-on E-on is offline
Junior Member
 
First recorded activity by ExcelBanter: May 2012
Posts: 9
Default How to adjust or resize a range?

I have asked this question on other forums, but have not got a reply yet.
It is really simple question in excel, but struggled on VBA. Please see attached 3 different tabs. The first one is the origianal tab, second one is what I am looking for as a solution and third one is my attempt.

In excel, I can cut, move and copy in to a desired range, and I thought using a combination of offset and resize will do the same job in VBA. All I wanted is using VBA to move the range in to top left hand corner and delete any blank columns and rows. I am very keen to undertstand the Resize property in VBA. Lots of peopel use resize and offset in the middle of thier code, so would apprciate if some one could either correct my code,or come up with a new code which has offset and resize in it.

Thanks
Ads
  #2  
Old June 29th 12, 07:25 PM
Spencer101 Spencer101 is offline
Senior Member
 
First recorded activity by ExcelBanter: Mar 2012
Posts: 654
Default

Quote:
Originally Posted by E-on View Post
I have asked this question on other forums, but have not got a reply yet.
It is really simple question in excel, but struggled on VBA. Please see attached 3 different tabs. The first one is the origianal tab, second one is what I am looking for as a solution and third one is my attempt.

In excel, I can cut, move and copy in to a desired range, and I thought using a combination of offset and resize will do the same job in VBA. All I wanted is using VBA to move the range in to top left hand corner and delete any blank columns and rows. I am very keen to undertstand the Resize property in VBA. Lots of peopel use resize and offset in the middle of thier code, so would apprciate if some one could either correct my code,or come up with a new code which has offset and resize in it.

Thanks
Just a thought, but it might help if you attach the example workbook....
  #3  
Old July 4th 12, 10:52 PM
E-on E-on is offline
Junior Member
 
First recorded activity by ExcelBanter: May 2012
Posts: 9
Default

I was unable to attach an excel file
  #4  
Old July 5th 12, 12:38 PM posted to microsoft.public.excel.programming
Vacuum Sealed
external usenet poster
 
Posts: 259
Default How to adjust or resize a range?

On 5/07/2012 7:52 AM, E-on wrote:
> I was unable to attach an excel file
>
>
>
>

You have to upload it to a File-Sharing site like Excel Banter or similar.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed: How to adjust the SUM range??‏ Chechu Excel Programming 0 January 20th 10 01:17 AM
Resize Table Range to exclude zero values and Input New Range into achart object jparnold Excel Programming 10 December 22nd 09 04:09 PM
Images do not resize when using 'fit to' or 'adjust to' Alison Simons Excel Discussion (Misc queries) 0 November 6th 09 10:29 AM
adjust range size?? ricksimm[_3_] Excel Programming 3 June 27th 05 09:15 AM
Range.Delete and Range.Resize.Name performance issues Test.File Excel Programming 0 February 15th 05 03:33 PM


All times are GMT +1. The time now is 02:23 PM.


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