Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
bmm bmm is offline
external usenet poster
 
Posts: 10
Default DDE excel and VC:Urgent

Iam trying to run a program which activates one of the sheet of the workbook
and trying to Poke data in to the most active sheet.
But every poke statement is putting data in to sheet 1 only.

the code snippet is:
char szItem3[] = "R3C1";
char szDatasheet1[] = "Data to sheet1";
char szSheet1[]="[WORKBOOK.ACTIVATE(\"sheet1\")]" ;
DDEExecute( idInst, hConv, szheet1);
Sleep(3000);
DDEPoke(idInst, hConv, szItem3, szDatasheet1);
Sleep(3000);

char szDatasheet2[] = "Data to sheet2";
char szSheet2[]="[WORKBOOK.ACTIVATE(\"sheet2\")]" ;
DDEExecute( idInst, hConv, szSheet2);
Sleep(3000);
DDEPoke(idInst, hConv, szItem3, szDataSheet2);


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
excel help please. Urgent!! lee bexton Excel Worksheet Functions 3 November 15th 09 09:40 AM
IME MODE FOR EXCEL 2007 (URGENT URGENT) Stella Wong Excel Discussion (Misc queries) 1 August 23rd 08 11:16 PM
Urgent-Urgent VBA LOOP Jeff Excel Discussion (Misc queries) 0 October 6th 05 05:46 PM
Macro help urgent urgent Dave Peterson[_3_] Excel Programming 0 September 4th 03 03:59 PM
Macro help urgent urgent chandra Excel Programming 0 September 4th 03 03:50 PM


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