LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default RefEdit updating Current Cell location

Hello,
How to prompt a user to select only 1 cell-location type using RefEdit when
a form is running?
For example:

I have a form with 1 RefEdit (RefEdit1) and 2 TextBoxes
(txtCellCurrentLocation and txtSheetCurrentLocation)

1. When the form start running it will get the current cell location and it
will show the results on txtCellCurrentLocation and txtSheetCurrentLocation

2. After that, the RefEdit tool can be clicked to select another new current
location,

*Also RefEdit1 value has to be only 1 cell located only in Columns C, E and
G.
*If the user select a range of cells it will get a message to try again and
select only 1 cell or quit form.

3. After getting a new good value for RefEdit1 then txtCellCurrentLocation
and txtSheetCurrentLocation textboxes will be updated in the form.

=================

Private Sub RefEdit1_BeforeDragOver(Cancel As Boolean, ByVal Data As
MSForms.DataObject, ByVal x As stdole.OLE_XPOS_CONTAINER, ByVal y As
stdole.OLE_YPOS_CONTAINER, ByVal DragState As MSForms.fmDragState, Effect As
MSForms.fmDropEffect, ByVal Shift As Integer)

End Sub

Private Sub TxtCellCurrentLocation_Change()

End Sub

Private Sub TxtSheetCurrentLocation_Change()

End Sub

Private Sub UserForm_Initialize()
TxtSheetCurrentLocation = ActiveSheet.Name
TxtCellCurrentLocation = ActiveCell.Address
End Sub
============


Thanks

Coco

 
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
Advanced Filter - Copying to location other than current sheet? Maki Excel Discussion (Misc queries) 6 January 13th 10 08:10 AM
Current Cell location HRHRLBS Excel Worksheet Functions 1 April 16th 09 07:38 PM
Macro - save to current location vs excel default location leezard Excel Discussion (Misc queries) 0 October 28th 08 03:04 PM
VBA to specify chart location as obj in current sheet? Dr Dan[_2_] Charts and Charting in Excel 6 February 23rd 07 03:25 PM
Saving a TXT file keeping its current location Chichifo[_3_] Excel Programming 1 September 7th 04 07:39 PM


All times are GMT +1. The time now is 12:55 PM.

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"