Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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


Reply With Quote
  #2 (permalink)  
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
Reply With Quote
  #3 (permalink)  
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

Reply With Quote
  #4 (permalink)  
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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


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



All times are GMT -4. The time now is 10:54 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.