Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 18th, 2005, 12:51 PM
Registered User
 
Join Date: Oct 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Columns resize event

Hello there,

I need to handle the columns resize operation in an Excel Worksheet but I don't know what event is generated when the column is resized (using mouse drag) and how to capture this event in the VBA code of the Excel document.
Any help is apreciated.

mihai


 
Old October 23rd, 2005, 07:44 PM
Registered User
 
Join Date: Oct 2005
Location: :), :), Malaysia.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ix_ly Send a message via MSN to ix_ly
Default

Hi mihai,

maybe you could try to record the macro and discover the code involved.

However, i think the following code might help you.
  Columns("A:A").EntireColumn.AutoFit
  Rows("10:11").EntireRow.AutoFit

nick

ix
 
Old October 27th, 2005, 12:11 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: , , Finland.
Posts: 168
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

There's no such an event as Column_Resize.

-vemaju

 
Old November 9th, 2005, 09:05 PM
Registered User
 
Join Date: Oct 2005
Location: :), :), Malaysia.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ix_ly Send a message via MSN to ix_ly
Default

Hi,

For AUTOFIT the column width, you can use this event
    Range("A1").EntireColumn.AutoFit

For MANUALLY set the column width, you can use this event
    Range("A1").EntireColumn.ColumnWidth = 20

:D

ix




Similar Threads
Thread Thread Starter Forum Replies Last Post
resize image dhoward VB.NET 2002/2003 Basics 1 June 14th, 2011 04:05 AM
how to make it not to resize? kherrerab BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 14 April 11th, 2007 02:11 PM
Resize Porportional vb certified Pro VB.NET 2002/2003 0 June 21st, 2005 03:33 PM
Resize chart... swammingo Crystal Reports 0 February 3rd, 2005 06:27 AM
Resize and Hide columns in WEB FORM Datagrid? Ron Howerton Classic ASP Basics 5 April 30th, 2004 07:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.