Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Edit a cells content via a dialog box?


Hi,

I would like to edit a cells content via a dialog box or message box.
The reason for this request is because I have a need to update a date
and machinary part in a maintenance log. I have used input boxes and
message boxes in the past, however, editting a known cells contents
without actually going to that cell on the sheet is really what I am
after.

Thanks in advance.

Regards,

Wazza McG


--
Wazza McG
------------------------------------------------------------------------
Wazza McG's Profile: http://www.excelforum.com/member.php...o&userid=36785
View this thread: http://www.excelforum.com/showthread...hreadid=564979

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 138
Default Edit a cells content via a dialog box?

Hi Wazza,

dim strDate as string
'set default date
strDate =date()
do
strDate=inputbox("enter date","maintenance date",strdate)
'check whether cancelled
if len(strDate)<1 then
'user clicked cancel
end if
'loop if user entered a non date value
loop until isdate(strDate)
'store date in cell
Worksheets("name of sheet").range("E2")=strDate

' E2 could also be name of named cell

hope this gives you some ideas to work with

Luck
Jonathan

"Wazza McG" wrote:


Hi,

I would like to edit a cells content via a dialog box or message box.
The reason for this request is because I have a need to update a date
and machinary part in a maintenance log. I have used input boxes and
message boxes in the past, however, editting a known cells contents
without actually going to that cell on the sheet is really what I am
after.

Thanks in advance.

Regards,

Wazza McG


--
Wazza McG
------------------------------------------------------------------------
Wazza McG's Profile: http://www.excelforum.com/member.php...o&userid=36785
View this thread: http://www.excelforum.com/showthread...hreadid=564979


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
Edit Link Dialog Box Howard Excel Discussion (Misc queries) 1 October 15th 09 04:55 PM
Using RichTextBox to edit Cell content dlavoie Excel Discussion (Misc queries) 0 October 13th 05 06:13 PM
Link content from dialog box to a worksheet cell Olga Excel Discussion (Misc queries) 1 July 13th 05 03:57 PM
A Macro to Edit Cell Content jer101 Excel Programming 2 June 17th 04 10:42 PM
Show Dialog Box - Edit/Replace MaxLamer Excel Programming 3 October 2nd 03 08:58 PM


All times are GMT +1. The time now is 12:26 AM.

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"