Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Running macro from another sheet - VSTO

Hi,

I've got following situation. Got to 2 sheets, one as a kind of
dashboard (import previous budgets, create new one) and second with
the (supposed to be) imported budget. I've also written simple budget
class with few fields (I'm using VS2008, NET 3.5). I'm reading xml
file to create budget object and I do not know how to pass data from
budget object to cells in another sheet. Let me be more clear:
In Sheet called "Dashboard" user will choose which budget(s) to
import, budgets' objects are created and now I want to switch somehow
to Sheet "Budget" to fill proper cell with data. How can I do it?

Przemek
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Running macro from another sheet - VSTO

Something like this should do it:
Sheets("Budget").Select or Sheets(3).Select

Look at this reference (it even uses the same name you use in your Workbook):
http://www.ozgrid.com/VBA/excel-vba-sheet-names.htm

Ryan---

--
RyGuy--
If the post was helpful, please click the ''Yes'' button to indicate such!


"Przemek" wrote:

Hi,

I've got following situation. Got to 2 sheets, one as a kind of
dashboard (import previous budgets, create new one) and second with
the (supposed to be) imported budget. I've also written simple budget
class with few fields (I'm using VS2008, NET 3.5). I'm reading xml
file to create budget object and I do not know how to pass data from
budget object to cells in another sheet. Let me be more clear:
In Sheet called "Dashboard" user will choose which budget(s) to
import, budgets' objects are created and now I want to switch somehow
to Sheet "Budget" to fill proper cell with data. How can I do it?

Przemek

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
Macro not running in Protect Sheet Akash Excel Programming 1 January 16th 08 01:15 PM
Macro not running in Protect Sheet Akash Excel Programming 0 January 16th 08 12:39 PM
Running Macro Across More Than One Sheet nospaminlich Excel Programming 3 July 30th 07 06:50 PM
VSTO running unattended Bob Sullentrup Excel Programming 0 March 1st 06 10:20 PM
Running Macro on every sheet in Workbook !!! Jako[_65_] Excel Programming 14 August 9th 04 01:06 AM


All times are GMT +1. The time now is 02:20 AM.

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"