![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 3
|
OK...Im very new to excel and dont know if this can be done but here goes
I need to look up the value of a cell eg (H4) ..this is an invoice number...and then save the xls file as that number using a button from VB Hope this isnt too vague Regards Brad |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Southfield,MI USA
Posts: 1,030
|
G'day,
I'm still a beginner in VBA but something like this would work: Code:
Sub AssignFileName()
FileNm = Sheets("Sheet1").Range("H4").Value
ChDir "C:WINDOWSDesktop"
ActiveWorkbook.SaveAs Filename:=FileNm
End Sub
Hope that helps, Adam |
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Posts: 3
|
woo woo thanx great job....so simple really...
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|