Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default getting quered data to merge cells



set db =opendatabase("aa.mdb")
set rs = db.openrecordset("select fld1,fld2 from tbl")
range("a1").copyfromrecordset rs

this code source is good applyed for non-merged cell.
but, merged cell is not.

I want to bring the data to merged cell once without loop.

for example,

range("a1:b1").mergedcell=true
range("c1:d1").mergedcell=true
range("e1:f1").mergedcell=true
set db =opendatabase("aa.mdb")
set rs = db.openrecordset("select fld1,fld2 from tbl")
range("a1").XXXXX rs

I want to get without loop(For Next or Do Loop).











*** Sent via Developersdex http://www.developersdex.com ***
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
Is it is possible to merge data from 2 cells into one? norvesh New Users to Excel 2 October 1st 07 10:28 PM
Merge cells with same data Jithu Excel Discussion (Misc queries) 0 June 21st 07 02:30 PM
Merge Two Cells and Keep all Data Rob Excel Discussion (Misc queries) 4 May 23rd 07 03:53 PM
Merge data from different cells Jenny Excel Discussion (Misc queries) 2 April 1st 05 09:39 PM
Way to merge data in 3 cells? Cam Hua Excel Programming 3 October 28th 04 05:46 PM


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