Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default I need help urgently

Plse could anyone once you have opened an instance of excel with getobject
how do you populate a worksheet

Any advice welcome


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default I need help urgently

Dim xlApp as Object
xlapp = GetObject("Excel.Application")
xlapp.Activesheet.Range("A1:B10").Formula = "=Trunc(rand()*100+1)"

Treat xlapp as the application object you would use within excel itself.

--
Regards,
Tom Ogilvy

Brian wrote in message
...
Plse could anyone once you have opened an instance of excel with getobject
how do you populate a worksheet

Any advice welcome




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default I need help urgently

Brian,

Along the lines of

xlApp.Visible = True
xlApp.Workbooks.Add
xlApp.ActiveWorkbook.Worksheets(1).Range("A1").Val ue = "Bob"


--

HTH

Bob Phillips

"Brian" wrote in message
...
Plse could anyone once you have opened an instance of excel with getobject
how do you populate a worksheet

Any advice welcome




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default I need help urgently


thanks will try it


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default I need help urgently



thanks i will try this


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
Help needed urgently AndyW Excel Worksheet Functions 4 May 30th 10 05:07 PM
Help needed urgently..:( harveen Excel Worksheet Functions 8 February 10th 09 09:19 PM
I need ur help urgently gaurav Excel Worksheet Functions 3 February 1st 08 06:41 PM
Need your help urgently Calculate Date range Excel Worksheet Functions 1 August 2nd 06 11:25 AM
Help Please Urgently, Please Giffy Excel Discussion (Misc queries) 1 September 5th 05 09:44 PM


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