Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default VBA questions

Is there any webpages or public docs where I can get a class breakdown
of all
Excel functions/variables in VBA? Specifically the cell style
variables? I've been unsuccessful in just playing with different
values and getting the results I need. (Things like cell boarders,
removing column/row lines etc etc)

Also I'm looking for a way to get the exact number of items in a
column and a way to completely clear a sheet. I'm currently performing
a

for i = 1 to width
Excel.Activeworkbook.Sheets("SHEETNAME").Columns(i ) = ""
next i

however it doesn't remove formatting information like boarders


Thanks
Eric
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA questions

Sheets("SheetName").UserRange.Clear

clear removes everything.


Turn on the macro recorder and manipulate your cells. The recorder records
settings for all attributes associated with your actions, not just the ones
you change, so it should give you some insight into what you have available.

Look in the object browser in the VBE at the range object.

--
Regards,
Tom Ogilvy

"Eric Wescott" wrote in message
om...
Is there any webpages or public docs where I can get a class breakdown
of all
Excel functions/variables in VBA? Specifically the cell style
variables? I've been unsuccessful in just playing with different
values and getting the results I need. (Things like cell boarders,
removing column/row lines etc etc)

Also I'm looking for a way to get the exact number of items in a
column and a way to completely clear a sheet. I'm currently performing
a

for i = 1 to width
Excel.Activeworkbook.Sheets("SHEETNAME").Columns(i ) = ""
next i

however it doesn't remove formatting information like boarders


Thanks
Eric



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default VBA questions

"Tom Ogilvy" wrote ...

Look in the object browser in the VBE at the range object.


For an overall picture (literally), see the Excel object model in the
help or on MSDN (Excel2000):

http://msdn.microsoft.com/library/de...pplication.asp

Jamie.

--
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA questions

Typo
Sheets("SheetName").UserRange.Clear
should be

Sheets("SheetName").UsedRange.Clear

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
Sheets("SheetName").UserRange.Clear

clear removes everything.


Turn on the macro recorder and manipulate your cells. The recorder

records
settings for all attributes associated with your actions, not just the

ones
you change, so it should give you some insight into what you have

available.

Look in the object browser in the VBE at the range object.

--
Regards,
Tom Ogilvy

"Eric Wescott" wrote in message
om...
Is there any webpages or public docs where I can get a class breakdown
of all
Excel functions/variables in VBA? Specifically the cell style
variables? I've been unsuccessful in just playing with different
values and getting the results I need. (Things like cell boarders,
removing column/row lines etc etc)

Also I'm looking for a way to get the exact number of items in a
column and a way to completely clear a sheet. I'm currently performing
a

for i = 1 to width
Excel.Activeworkbook.Sheets("SHEETNAME").Columns(i ) = ""
next i

however it doesn't remove formatting information like boarders


Thanks
Eric





Reply
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
Answers to questions posing more questions in a workbook sbelle1 Excel Worksheet Functions 2 August 8th 09 01:02 AM
View Questions and Answer to questions I created Roibn Taylor Excel Discussion (Misc queries) 4 July 24th 08 12:05 AM
007 questions Gklass Charts and Charting in Excel 0 February 4th 07 05:05 PM
a few questions Tuck Excel Worksheet Functions 3 May 2nd 06 10:07 PM
2 questions the_dr38 Excel Discussion (Misc queries) 2 April 4th 06 12:12 PM


All times are GMT +1. The time now is 01:43 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"