• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Select 3 rows down, 2 columns right

Hello Everybody.


Can i have a simple one line code to select 3 rows down and 2 columns right.
am struck with the code in one of the macro development.

Cheers!
 
Hey monty...

U there long time.

It's a simple question out of my big project, am using different things to achieve this.

can i have simple on line code fo this!

Cheers!
 
May be you require this aswell.

Everthing i have recored nothing from writing macros as such
Code:
'==Hide a column:
Selection.EntireColumn.Hidden = True
'==Insert a column:
Columns("N:N").Insert
'==Delete columns:
Columns("B:E").EntireColumn.Delete
'==Insert a new row at current cell:
Selection.EntireRow.Insert
'==Delete row of current cell:
Selection.EntireRow.Delete
'==Set column width:
Selection.EntireColumn.ColumnWidth = 10
'==Set row height:
Selection.RowHeight = 26.25
'==Set row height to size of co
 
Thanks champ for give more information..

i will start using code provided any challenges will post..of course aim trying my end as you suggested before positing question.
 
James.

Please ask yourself a question what you need and start doing recording which am doing for you...any thing challenge let me know or any one in the forum...people are always there to help you.


Monty
 
James!

As i said, i dont know your requirment...but still giving you a code on formating just check it.


Code:
==Text not wrapped:
Selection.WrapText = False
'==Remove color:
Selection.Interior.ColorIndex = xlNone
'==Set font size:
Selection.Font.Size = 8
'==Date and time format:
Selection.NumberFormat = "mm-dd-yyyy hh:mm AM/PM"
'==Number format with comma:
Selection.NumberFormat = "#,##0"
'==Left aligned:
Selection.HorizontalAlignment = xlLeft
'==Bottom aligned:
Selection.VerticalAlignment = xlBottom
'==Indented text:
Selection.IndentLevel = 3
'==Delete contents but not formatting:
Selection.ClearContents
'==Delete contents and formatting:
Selection.Clear
 
Wow champ...that's cool.

i put my self for a week to achieve this...i think i can finish this morning..

As always thank you so very much!

Cheers!
 
Thank you so very much Champ!.

thought you have provided extensive code for all the possibles...i used as per my requirement...and am done.
 
Back
Top