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: 2
Default Newbie VBA questions

I'm very new to Excel VBA. I've been working on a spreadsheet for the
past few days and I have a few unanswered questions. Hopefully someone
can answer them for me here.


1) In VBA, how do I create a string that includes a date? I want to set
the value of a field to be something like "Sunday 10/3". I want to do
this starting with a given date, and then going through an entire week.
I figured out I could do:

Dim currentWeekSunday As Date
currentWeekSunday = "10/3/2004"
ActiveSheet.Range("E6").Value = "Sunday " & currentWeekSunday


That code works, but it formats the date as "10/3/2004" and I want
"10/3" only.



2) Using the forms toolbar, I added a combobox to my sheet. I have
assigned the values of this combobox to a range of cells on another
sheet. I want to get the value of the combobox from within code. How do
I go about this? Can I name the combobox ? I'm a C# developer, and I'm a
bit lost in Excel.


3) I successfully have a button that inserts or refreshes a basic web
query. How do I go about passing parameters to the web query from within
code? Specifically, I need the value from my combobox in question #2 to
be the parameter.

Thanks for any and all help.

Brian
 
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
Newbie Questions KS Excel Discussion (Misc queries) 3 June 18th 09 06:13 PM
Newbie Questions ? Robert11[_3_] New Users to Excel 2 February 5th 09 04:12 PM
Newbie questions on spreadsheet WayneC Excel Worksheet Functions 5 December 22nd 04 02:42 AM
newbie questions Eric Excel Worksheet Functions 1 December 14th 04 04:39 PM
Newbie - two questions Bill Burke Excel Programming 4 April 7th 04 09:38 AM


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