LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default selecting columns to change format

Hi!
I'm using Excel 2003 and VBScript.
I'm trying to change formats of specific columns. I get an error of
"missing Object" with the objRange. Is this the way to do it?


Set objRange = objWorksheet.Columns("D:E").Select
objRange.NumberFormat = "0.0000"

Set objRange = objWorksheet.Columns("B:B").Select
objRange.NumberFormat = "[$-1010409]d/m/yyyy h:mm;@"

Set objRange = objWorksheet.Cells("D1").Select
objRange.FormulaR1C1 = "=RC[-2]"

Set objRange = objWorksheet.Range("D").Select
objRange.FillDown

Thanks for any help!

 
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
How do I change the position of the columns in an Excel format? pjbalvanz Excel Discussion (Misc queries) 1 December 27th 07 03:56 AM
Selecting different multiple columns rcg Excel Worksheet Functions 1 September 26th 06 05:58 PM
Selecting many specific columns for a chart porridge Charts and Charting in Excel 2 July 26th 06 07:49 PM
selecting columns in a worksheet nuti Excel Worksheet Functions 1 January 12th 06 01:06 PM
Both columns change when I format only one column (A) Wayne New Users to Excel 1 January 31st 05 08:09 PM


All times are GMT +1. The time now is 08:21 PM.

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

About Us

"It's about Microsoft Excel"