#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cells.Range

Good afternoon!

I'm pretty new to VBA and have been plumbing my way through, reading
lot of content on here to help me by


I've got a bit of a problem in my sheet when I use the RefEdit object.


I have a main form (frmMain) and I can launch a sub form (frmRefEntry
to go select a cell. I'm using the value of this cell to populate th
text field of my main form (txtRef)

Basically I'm saying that:

frmMain.txtRef.Value = Cells.Range(frmRefEntry.refInput.Value)

Now! This works wonderfully. If I stay on the same worksheet that
launched the form from. The problem comes when I open the sub form an
select a cell from a different worksheet, it messes up giving me an Ap
or Object defined error




I have sort of figured out that it's the fact that it's another shee
that's causing this a problem and am thinking somewhere down the lin
that the Cell.Range property will ignore the sheet name? or uses Sheet
or Sheet2 instead of the actual name? But I'm only guessing.


Anyone have any idea?

any help would be good.


Cheer

--
Message posted from http://www.ExcelForum.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
Summing a range of cells based on criteria in another range Jack Excel Worksheet Functions 2 November 5th 09 01:46 AM
When entering data into a range of cells, select the entire range. Q Excel Discussion (Misc queries) 0 September 26th 07 04:36 AM
how to compute a range of cells based on another range of cells? HAROLD Excel Worksheet Functions 1 December 30th 05 09:32 PM
how to compute a range of cells based on another range of cells? HAROLD Excel Worksheet Functions 2 December 30th 05 07:55 PM
Count cells in one range based on parameters in another range dave roth Excel Worksheet Functions 2 March 29th 05 05:33 PM


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