|
-
Aug 30th, 2000, 12:02 PM
#1
Thread Starter
Lively Member
Hy, everybody. I´m trying to show on my Standard form the format cells of Excel(locate into an Excel cell and then push Ctrl+1), I'm using an ole from VB to Excel like this:
'********** I M P O R T A N T
'********** U must have to go to the project references and select the Microsoft Excel 9.0 or 8.0 Object Library
'----------- VB code
Option Explicit
Dim xlsApp As Excel.Application
Private Sub Command1_Click()
Hy, everyone. I´m trying to show on my Standard form the format cells of Excel(locate into an Excel cell and then push Ctrl+1), I'm using an ole from VB to Excel like this:
'********** I M P O R T A N T
'********** U must have to go to the project references and select the Microsoft Excel 9.0 or 8.0 Object Library
'----------- VB code
Option Explicit
Dim xlsApp As Excel.Application
Private Sub Command1_Click()
Set xlsApp = Excel.Application
With xlsApp
'Show Excel
.Visible = True
'Create a new workbook
.Workbooks.Add
'Put text in to the cell that is selected
.ActiveCell.Value = "123"
'Put text into A3 regardless of the selected cell
.Range("A3").Value = "456"
'----------- VB code
My question is: How can i show the format cells that appears in Excell
Thanx everyone for reply
-
Aug 30th, 2000, 12:41 PM
#2
-
Aug 30th, 2000, 12:42 PM
#3
Lively Member
Its been all of a half hour since your last post! What happened to patience? Many of the people who would be able to help you are at work (I know I am) and can only check the posts periodically. If somebody can help you I'm sure they will as soon as they can.
-
Aug 30th, 2000, 12:43 PM
#4
Lively Member
Oops Jop beat me to the reply.
-
Aug 30th, 2000, 12:47 PM
#5
Frenzied Member
hehe
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Aug 30th, 2000, 02:10 PM
#6
Thread Starter
Lively Member
Now I wait about 3 hours, but thanx everybody for reply. I'm still working with it. If could finish that **** i will share it.
See u later
-
Aug 30th, 2000, 03:37 PM
#7
Thread Starter
Lively Member
Ok, i understand, what i'm trying to do is difficult
See u
-
Aug 30th, 2000, 06:47 PM
#8
Frenzied Member
A few tips for future posts.
- Never say you're a Guru in the Subject of your post 
- When posting code type [ code ] Your code here [ /code ]
(Remove the spaces between the brackets and you'll get this)
Code:
'********** I M P O R T A N T
'********** U must have to go to the project references and select the Microsoft Excel 9.0 or 8.0 Object Library
'----------- VB code
Option Explicit
Dim xlsApp As Excel.Application
Private Sub Command1_Click()
Hy, everyone. I´m trying to show on my Standard form the format cells of Excel(locate into an Excel cell and then push Ctrl+1), I'm using an ole from VB to Excel like this:
'********** I M P O R T A N T
'********** U must have to go to the project references and select the Microsoft Excel 9.0 or 8.0 Object Library
'----------- VB code
Option Explicit
Dim xlsApp As Excel.Application
Private Sub Command1_Click()
Set xlsApp = Excel.Application
With xlsApp
'Show Excel
.Visible = True
'Create a new workbook
.Workbooks.Add
'Put text in to the cell that is selected
.ActiveCell.Value = "123"
'Put text into A3 regardless of the selected cell
.Range("A3").Value = "456"
'----------- VB code
Hey it's on top again, goodluck
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|