Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default data table function

how do i call the data table function in VBA?

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 791
Default data table function

Try this:

Sub Test()

Set dataTableRange = Worksheets("Sheet1").Range("A1:K11")
Set rowInputCell = Worksheets("Sheet1").Range("A12")
Set columnInputCell = Worksheets("Sheet1").Range("A13")

Worksheets("Sheet1").Range("A1").Formula = "=A12*A13"
For i = 2 To 11
Worksheets("Sheet1").Cells(i, 1) = i - 1
Worksheets("Sheet1").Cells(1, i) = i - 1
Next i
dataTableRange.Table rowInputCell, columnInputCell
With Worksheets("Sheet1").Range("A1").CurrentRegion
.Rows(1).Font.Bold = True
.Columns(1).Font.Bold = True
.Columns.AutoFit
End With

End Sub
--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"dstiefe" wrote:

how do i call the data table function in VBA?

Thank you

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
Data table function maestro Excel Worksheet Functions 17 April 11th 07 12:34 PM
Limit to Data/Table function Guillaume Excel Discussion (Misc queries) 0 February 28th 07 11:31 PM
how do i automate an index function with a data table Gracie_J Excel Worksheet Functions 0 October 8th 06 11:32 PM
Can a pivot table function like data filter? Tbal Excel Programming 1 July 18th 05 02:01 PM
Can a pivot table function like data filter? TB Excel Programming 0 July 18th 05 01:21 PM


All times are GMT +1. The time now is 09:23 PM.

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

About Us

"It's about Microsoft Excel"